Aller au contenu principal
Version: Next

AsyncHooksContextManager

Implements

  • AsyncContextManager

Index

Constructors

constructor

Methods

active

  • active(): AsyncContext

bind

  • bind<T>(context: AsyncContext, target: T): T
  • Binds a the certain context or the active one to the target function and then returns the target


    Type parameters

    • T

disable

enable

with

  • with<A, F>(context: AsyncContext, fn: F, thisArg?: ThisParameterType<F>, ...args: A): ReturnType<F>
  • Type parameters

    • A: unknown[]
    • F: (...args: A) => ReturnType<F>