Options
All
  • Public
  • Public/Protected
  • All
Menu

Class AsyncHooksCLS<Context>

An implementation of continuation-local storage on top of the async_hooks module.

Type parameters

  • Context: __type

Hierarchy

  • AsyncHooksCLS

Implements

Index

Constructors

constructor

Methods

bindWithCurrentContext

  • bindWithCurrentContext<T>(fn: Func<T>): Func<T>

disable

  • disable(): void

enable

  • enable(): void

getContext

  • getContext(): Context

isEnabled

  • isEnabled(): boolean

patchEmitterToPropagateContext

  • patchEmitterToPropagateContext(ee: EventEmitter): void

runWithContext

  • runWithContext<T>(fn: Func<T>, value: Context): T

Generated using TypeDoc