HookCallbacks

@native @JSType trait HookCallbacks extends StObject
Companion
object
trait StObject
class Object
trait Any
class Object
trait Matchable
class Any

Value members

Inherited methods

def hasOwnProperty(v: String): Boolean
Inherited from
Object
def isPrototypeOf(v: Object): Boolean
Inherited from
Object
def propertyIsEnumerable(v: String): Boolean
Inherited from
Object
def toLocaleString(): String
Inherited from
Object
def valueOf(): Any
Inherited from
Object

Concrete fields

var after: UndefOr[Function1[Double, Unit]]

Called immediately after the callback specified in before is completed.

Called immediately after the callback specified in before is completed.

Value Params
asyncId

the unique identifier assigned to the resource which has executed the callback.

var before: UndefOr[Function1[Double, 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.

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.

Value Params
asyncId

the unique identifier assigned to the resource about to execute the callback.

var destroy: UndefOr[Function1[Double, Unit]]

Called after the resource corresponding to asyncId is destroyed

Called after the resource corresponding to asyncId is destroyed

Value Params
asyncId

a unique ID for the async resource

var init: UndefOr[Function4[Double, String, Double, Object, Unit]]

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

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

Value Params
asyncId

a unique ID for the async resource

resource

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

triggerAsyncId

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

type

the type of the async resource

var promiseResolve: UndefOr[Function1[Double, Unit]]

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

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

Value Params
asyncId

the unique id for the promise that was resolve()d.