Packages

o

fs2.internal.jsdeps.node

nodeAsyncHooksMod

object nodeAsyncHooksMod

Source
nodeAsyncHooksMod.scala
Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. nodeAsyncHooksMod
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Type Members

  1. 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()
  2. 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

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. val ^: Any
    Annotations
    @JSImport("node:async_hooks", JSImport.Namespace) @native()
  5. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  6. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @IntrinsicCandidate()
  7. 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()
  8. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  9. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  10. def executionAsyncId(): Double

    Returns the asyncId of the current execution context.

    Returns the asyncId of the current execution context.

    Annotations
    @inline()
  11. 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()
  12. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @IntrinsicCandidate()
  13. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @IntrinsicCandidate()
  14. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  15. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  16. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  17. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  18. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  19. def toString(): java.lang.String
    Definition Classes
    AnyRef → Any
  20. 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()
  21. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  22. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  23. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  24. object AsyncResource

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

Inherited from AnyRef

Inherited from Any

Ungrouped