init

abstract val init: (asyncId: Number, type: String, triggerAsyncId: Number, resource: Any) -> Unit?(source)

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

Parameters

asyncId

A unique ID for the async resource

type

The type of the async resource

triggerAsyncId

The unique ID of the async resource in whose execution context this async resource was created

resource

Reference to the resource representing the async operation, needs to be released during destroy