Options
All
  • Public
  • Public/Protected
  • All
Menu

Type parameters

Hierarchy

Index

Constructors

  • new default<CTX>(ctx?: CTX): default<CTX>

Properties

cache: Dictionary<GlobalCache> = ...

Cache for async operations

context: CTX
deprecated
see

[[Async.ctx]]

ctx: CTX

Context of applying for async handlers

idsMap: WeakMap<object, object> = ...

Map for task identifiers

locked: boolean = false

The lock status. If true, then all new tasks won't be registered.

usedNamespaces: Set<string> = ...

Set of used async namespaces

workerCache: WeakMap<object, boolean> = ...

Cache for initialized workers

linkNames: { eventListener: "eventListener"; eventListenerPromise: "eventListenerPromise"; idleCallback: "idleCallback"; idleCallbackPromise: "idleCallbackPromise"; immediate: "immediate"; immediatePromise: "immediatePromise"; interval: "interval"; intervalPromise: "intervalPromise"; iterable: "iterable"; promise: "promise"; proxy: "proxy"; proxyPromise: "proxyPromise"; request: "request"; timeout: "timeout"; timeoutPromise: "timeoutPromise"; worker: "worker" } = namespaces
deprecated
see

Async.namespaces

Type declaration

  • eventListener: "eventListener"
  • eventListenerPromise: "eventListenerPromise"
  • idleCallback: "idleCallback"
  • idleCallbackPromise: "idleCallbackPromise"
  • immediate: "immediate"
  • immediatePromise: "immediatePromise"
  • interval: "interval"
  • intervalPromise: "intervalPromise"
  • iterable: "iterable"
  • promise: "promise"
  • proxy: "proxy"
  • proxyPromise: "proxyPromise"
  • request: "request"
  • timeout: "timeout"
  • timeoutPromise: "timeoutPromise"
  • worker: "worker"
namespaces: { eventListener: "eventListener"; eventListenerPromise: "eventListenerPromise"; idleCallback: "idleCallback"; idleCallbackPromise: "idleCallbackPromise"; immediate: "immediate"; immediatePromise: "immediatePromise"; interval: "interval"; intervalPromise: "intervalPromise"; iterable: "iterable"; promise: "promise"; proxy: "proxy"; proxyPromise: "proxyPromise"; request: "request"; timeout: "timeout"; timeoutPromise: "timeoutPromise"; worker: "worker" } = namespaces

Map of namespaces for async operations

Type declaration

  • eventListener: "eventListener"
  • eventListenerPromise: "eventListenerPromise"
  • idleCallback: "idleCallback"
  • idleCallbackPromise: "idleCallbackPromise"
  • immediate: "immediate"
  • immediatePromise: "immediatePromise"
  • interval: "interval"
  • intervalPromise: "intervalPromise"
  • iterable: "iterable"
  • promise: "promise"
  • proxy: "proxy"
  • proxyPromise: "proxyPromise"
  • request: "request"
  • timeout: "timeout"
  • timeoutPromise: "timeoutPromise"
  • worker: "worker"

Accessors

  • get linkNames(): { eventListener: "eventListener"; eventListenerPromise: "eventListenerPromise"; idleCallback: "idleCallback"; idleCallbackPromise: "idleCallbackPromise"; immediate: "immediate"; immediatePromise: "immediatePromise"; interval: "interval"; intervalPromise: "intervalPromise"; iterable: "iterable"; promise: "promise"; proxy: "proxy"; proxyPromise: "proxyPromise"; request: "request"; timeout: "timeout"; timeoutPromise: "timeoutPromise"; worker: "worker" }
  • deprecated
    see

    [[Async.namespaces]]

    Returns { eventListener: "eventListener"; eventListenerPromise: "eventListenerPromise"; idleCallback: "idleCallback"; idleCallbackPromise: "idleCallbackPromise"; immediate: "immediate"; immediatePromise: "immediatePromise"; interval: "interval"; intervalPromise: "intervalPromise"; iterable: "iterable"; promise: "promise"; proxy: "proxy"; proxyPromise: "proxyPromise"; request: "request"; timeout: "timeout"; timeoutPromise: "timeoutPromise"; worker: "worker" }

    • eventListener: "eventListener"
    • eventListenerPromise: "eventListenerPromise"
    • idleCallback: "idleCallback"
    • idleCallbackPromise: "idleCallbackPromise"
    • immediate: "immediate"
    • immediatePromise: "immediatePromise"
    • interval: "interval"
    • intervalPromise: "intervalPromise"
    • iterable: "iterable"
    • promise: "promise"
    • proxy: "proxy"
    • proxyPromise: "proxyPromise"
    • request: "request"
    • timeout: "timeout"
    • timeoutPromise: "timeoutPromise"
    • worker: "worker"
  • get namespaces(): { eventListener: "eventListener"; eventListenerPromise: "eventListenerPromise"; idleCallback: "idleCallback"; idleCallbackPromise: "idleCallbackPromise"; immediate: "immediate"; immediatePromise: "immediatePromise"; interval: "interval"; intervalPromise: "intervalPromise"; iterable: "iterable"; promise: "promise"; proxy: "proxy"; proxyPromise: "proxyPromise"; request: "request"; timeout: "timeout"; timeoutPromise: "timeoutPromise"; worker: "worker" }
  • Link to Async.namespaces

    Returns { eventListener: "eventListener"; eventListenerPromise: "eventListenerPromise"; idleCallback: "idleCallback"; idleCallbackPromise: "idleCallbackPromise"; immediate: "immediate"; immediatePromise: "immediatePromise"; interval: "interval"; intervalPromise: "intervalPromise"; iterable: "iterable"; promise: "promise"; proxy: "proxy"; proxyPromise: "proxyPromise"; request: "request"; timeout: "timeout"; timeoutPromise: "timeoutPromise"; worker: "worker" }

    • eventListener: "eventListener"
    • eventListenerPromise: "eventListenerPromise"
    • idleCallback: "idleCallback"
    • idleCallbackPromise: "idleCallbackPromise"
    • immediate: "immediate"
    • immediatePromise: "immediatePromise"
    • interval: "interval"
    • intervalPromise: "intervalPromise"
    • iterable: "iterable"
    • promise: "promise"
    • proxy: "proxy"
    • proxyPromise: "proxyPromise"
    • request: "request"
    • timeout: "timeout"
    • timeoutPromise: "timeoutPromise"
    • worker: "worker"

Methods

  • cancelTask(task: any, name?: string): default<CTX>
  • clearAsync(opts: any, name?: string): default<CTX>
  • initCache(name: string, promise?: boolean): GlobalCache
  • markAsync(label: string, opts: any, name?: string): default<CTX>
  • markTask(label: string, task: any, name?: string): default<CTX>
  • Marks a task (or a group of tasks) from the namespace by the specified label

    Parameters

    • label: string
    • task: any

      operation options or a link to the task

    • Optional name: string

    Returns default<CTX>