Options
All
  • Public
  • Public/Protected
  • All
Menu

Class AsyncListenerCLS<Context>

An implementation of continuation-local storage that wraps the "continuation-local-storage" module.

Type parameters

  • Context: __type

Hierarchy

  • AsyncListenerCLS

Implements

Index

Constructors

constructor

Properties

Static ROOT_CONTEXT_KEY

ROOT_CONTEXT_KEY: "root" = "root"

Static TRACE_NAMESPACE

TRACE_NAMESPACE: "com.google.cloud.trace" = "com.google.cloud.trace"

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