AsyncResource

Companion
class
class Object
trait Matchable
class Any

Value members

Concrete methods

@inline
def bind[Func, ThisArg](fn: Func): Func & AsyncResource

Binds the given function to the current execution context.

Binds the given function to the current execution context.

Value Params
fn

The function to bind to the current execution context.

type

An optional name to associate with the underlying AsyncResource.

@inline
def bind[Func, ThisArg](fn: Func, `type`: String): Func & AsyncResource
@inline
def bind[Func, ThisArg](fn: Func, `type`: String, thisArg: ThisArg): Func & AsyncResource
@inline
def bind[Func, ThisArg](fn: Func, `type`: Unit, thisArg: ThisArg): Func & AsyncResource

Concrete fields

@JSImport("async_hooks", "AsyncResource") @native
val ^: Any