Hierarchy

  • AsyncContextManager

Methods

  • Run the fn callback with object set as the current active context

    Type Parameters

    • A extends unknown[]

    • F extends ((...args: A) => ReturnType<F>)

    Parameters

    • context: AsyncContext

      Any object to set as the current active context

    • fn: F

      A callback to be immediately run within a specific context

    • Optional thisArg: ThisParameterType<F>

      optional receiver to be used for calling fn

    • Rest ...args: A

      optional arguments forwarded to fn

    Returns ReturnType<F>

Generated using TypeDoc