Class Runnable<ArgDataT, ReturnT>

Task logic to store and externally call tasks. External callers can invoke stored tasks with custom arguments.

Type Parameters

  • ArgDataT
  • ReturnT

Constructors

Properties

Methods

Constructors

Properties

id: string

Unique ID for Runnable function.

Stored task to be executed. Although async functions are preferred for performance, both sync and async functions are supported. Guaranteed to be set to a task. Constructor throws when invoked without a valid task signature.

Methods