Options
All
  • Public
  • Public/Protected
  • All
Menu

Module src/core/async/modules/base/interface

Index

Type aliases

AsyncCb<CTX>: ProxyCb<TaskCtx<CTX>, void, CTX>

Type parameters

ClearReason: MarkReason | "muting" | "collision"

Reason why a task can be killed (cleared)

Group: string
Join: boolean | "replace"
Label: string | symbol
MarkReason: "id" | "label" | "group" | "rgxp" | "all"

Reason why a task can be marked

ProxyCb<A, R, CTX>: A extends never ? (this: CTX) => R : A extends any[] ? (this: CTX, ...args: A) => R : ((this: CTX, e: A) => R) | Function

Type parameters

  • A = unknown

  • R = unknown

  • CTX: object = default

StrictClearOptions: Omit<ClearOptions, "label"> | Overwrite<ClearOptions, { group: Group | RegExp; label: Label }>
StrictClearOptionsId<ID>: Omit<ClearOptionsId<ID>, "label"> | Overwrite<ClearOptionsId<ID>, { group: Group | RegExp; label: Label }>

Type parameters

  • ID = any

TaskCtx<CTX>: { link: Task<CTX>; reason?: ClearReason; replacedBy?: Task<CTX>; type: string } & AsyncOptions & ClearOptionsId<unknown>

Context of a task

Type parameters