Cell API
    Preparing search index...

    Class Context

    Indexable

    • [key: string | number | symbol]: any
    Index
    • fn runs in context (the values of a run), by default the context active now.

      Type Parameters

      • F extends (...args: any[]) => any

      Parameters

      • fn: F
      • Optionalcontext: Store

      Returns F

    • Runs fn in a new context; the returned promise settles with fn. A nested run starts from the values of the outer run (it sees the outer current context until it sets its own) and its changes stay inside it: the semantics of 4.x, kept from cls-hooked.

      Type Parameters

      • T

      Parameters

      • fn: (...args: any[]) => T | PromiseLike<T>

      Returns Promise<T>