Options
All
  • Public
  • Public/Protected
  • All
Menu

Class NullCLS<Context>

A trivial implementation of continuation-local storage where context takes on a default, immutable value.

Type parameters

  • Context

Hierarchy

  • NullCLS

Implements

Index

Constructors

constructor

  • new NullCLS(defaultContext: Context): NullCLS

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>): T

Generated using TypeDoc