Options
All
  • Public
  • Public/Protected
  • All
Menu

ZoneContextManager This module provides an easy functionality for tracing action between asynchronous operations in web. It was not possible with standard StackContextManager. It heavily depends on zone.js. It stores the information about context in zone. Each Context will have always new Zone; It also supports binding a certain Span to a target that has "addEventListener" and "removeEventListener". When this happens a new zone is being created and the provided Span is being assigned to this zone.

Hierarchy

  • ZoneContextManager

Implements

Index

Constructors

Methods

  • with<A, F>(context: null | Context, fn: F, thisArg?: ThisParameterType<F>, ...args: A): ReturnType<F>
  • Calls the callback function [fn] with the provided [context]. If [context] is undefined then it will use the active context. The context will be set as active

    Type Parameters

    • A extends unknown[]

    • F extends ((...args: A) => ReturnType<F>)

    Parameters

    • context: null | Context

      A context (span) to be called with provided callback

    • fn: F

      Callback function

    • Optional thisArg: ThisParameterType<F>

      optional receiver to be used for calling fn

    • Rest ...args: A

      optional arguments forwarded to fn

    Returns ReturnType<F>

Generated using TypeDoc