HookCallbacks

sealed external interface HookCallbacks(source)

Properties

Link copied to clipboard
abstract val after: (asyncId: Number) -> Unit?

Called immediately after the callback specified in before is completed.

Link copied to clipboard
abstract val before: (asyncId: Number) -> Unit?

When an asynchronous operation is initiated or completes a callback is called to notify the user. The before callback is called just before said callback is executed.

Link copied to clipboard
abstract val destroy: (asyncId: Number) -> Unit?

Called after the resource corresponding to asyncId is destroyed

Link copied to clipboard
abstract val init: (asyncId: Number, type: String, triggerAsyncId: Number, resource: Any) -> Unit?

Called when a class is constructed that has the possibility to emit an asynchronous event.

Link copied to clipboard
abstract val promiseResolve: (asyncId: Number) -> Unit?

Called when a promise has resolve() called. This may not be in the same execution id as the promise itself.