object nodeAsyncHooksMod
- Source
- nodeAsyncHooksMod.scala
- Alphabetic
- By Inheritance
- nodeAsyncHooksMod
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Type Members
- class AsyncLocalStorage[T] extends asyncHooksMod.AsyncLocalStorage[T]
When having multiple instances of
AsyncLocalStorage, they are independent from each other.When having multiple instances of
AsyncLocalStorage, they are independent from each other. It is safe to instantiate this class multiple times.- Annotations
- @JSType() @JSImport("node:async_hooks", "AsyncLocalStorage") @native()
- class AsyncResource extends asyncHooksMod.AsyncResource
The class AsyncResource was designed to be extended by the embedder's async resources.
The class AsyncResource was designed to be extended by the embedder's async resources. Using this users can easily trigger the lifetime events of their own resources.
- Annotations
- @JSType() @JSImport("node:async_hooks", "AsyncResource") @native()
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- val ^: Any
- Annotations
- @JSImport("node:async_hooks", JSImport.Namespace) @native()
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @IntrinsicCandidate()
- def createHook(options: HookCallbacks): AsyncHook
Registers functions to be called for different lifetime events of each async operation.
Registers functions to be called for different lifetime events of each async operation.
- options
the callbacks to register
- returns
an AsyncHooks instance used for disabling and enabling hooks
- Annotations
- @inline()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def executionAsyncId(): Double
Returns the asyncId of the current execution context.
Returns the asyncId of the current execution context.
- Annotations
- @inline()
- def executionAsyncResource(): Object
The resource representing the current execution.
The resource representing the current execution. Useful to store data within the resource.
Resource objects returned by
executionAsyncResource()are most often internal Node.js handle objects with undocumented APIs. Using any functions or properties on the object is likely to crash your application and should be avoided.Using
executionAsyncResource()in the top-level execution context will return an empty object as there is no handle or request object to use, but having an object representing the top-level can be helpful.- Annotations
- @inline()
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): java.lang.String
- Definition Classes
- AnyRef → Any
- def triggerAsyncId(): Double
Returns the ID of the resource responsible for calling the callback that is currently being executed.
Returns the ID of the resource responsible for calling the callback that is currently being executed.
- Annotations
- @inline()
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- object AsyncResource
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated