CallbackRegistration¶
interface CallbackRegistration<C : Callback> : AutoCloseable
Properties¶
callback¶
abstract val callback: NativeAddress
isClosed¶
isQuiescent¶
abstract val isQuiescent: Boolean
True only after closure, route revocation, and every acquired native delivery has returned.
policy¶
abstract val policy: CallbackPolicy
userdata¶
abstract val userdata: NativeAddress?
Functions¶
close¶
abstract override fun close()
onQuiescent¶
abstract fun onQuiescent(action: () -> Unit)
Runs [`action`](index.md#onquiescent) exactly once after this registration is closed and every acquired native delivery has returned. If it is already quiescent, [`action`](index.md#onquiescent) runs before this method returns. Failures are reported through this registration's [`CallbackExceptionHandler`](../-callback-exception-handler/index.md). The action runs synchronously on the thread that establishes or observes quiescence; no thread affinity or concurrent ordering is guaranteed.