Hyperlinkv0.9.0-beta.0

WorkPool

WorkPool.QueueTagConfiginterfacesrc/WorkPool.ts:821
QueueTagConfig<F, Success, Error>

Config-object overload of Tag. payload is the item schema (required); success (worker return) and error (worker failure channel) are the optional wire slots, stamped for the engine

  • store to read as the tag SSOT. Positional Tag()(key, payload, success?, error?) is also valid.
modelsTag
Source src/WorkPool.ts:82111 lines
export interface QueueTagConfig<
  F extends Schema.Struct.Fields,
  Success extends Schema.Top = typeof Schema.Void,
  Error extends Schema.Top = typeof Schema.Never,
> {
  readonly payload: Schema.Struct<F>;
  readonly success?: Success;
  readonly error?: Error;
  readonly description?: string;
  readonly node?: NodeKey<unknown>;
}