CoreCryptoCallbackContext

internal class CoreCryptoCallbackContext(access: AccountResourceAccess)

UniFFI starts awaited native callbacks in unrelated coroutines. Serialize calls to this native owner so a callback can recover the admission of exactly one active operation. Callback re-entry retains that operation, rather than acquiring its mutex a second time.

Constructors

Link copied to clipboard
constructor(access: AccountResourceAccess)

Functions

Link copied to clipboard
suspend fun <T> operation(generation: Long, block: suspend () -> T): T
Link copied to clipboard
fun pki(delegate: PkiEnvironmentHooks, generation: Long): PkiEnvironmentHooks
Link copied to clipboard
fun transport(delegate: MLSTransporter, generation: Long): MLSTransporter