@midwayjs/async-hooks-context-managerClassesAsyncHooksContextManagerVersion: NextSur cette pageAsyncHooksContextManager ImplementsAsyncContextManagerIndex ConstructorsconstructorMethodsactivebinddisableenablewithConstructors constructornew AsyncHooksContextManager(): AsyncHooksContextManagerMethods activeactive(): AsyncContextbindbind<T>(context: AsyncContext, target: T): TBinds a the certain context or the active one to the target function and then returns the targetType parametersTdisabledisable(): AsyncHooksContextManagerenableenable(): AsyncHooksContextManagerwithwith<A, F>(context: AsyncContext, fn: F, thisArg?: ThisParameterType<F>, ...args: A): ReturnType<F>Type parametersA: unknown[]F: (...args: A) => ReturnType<F>
Binds a the certain context or the active one to the target function and then returns the target