Options
All
  • Public
  • Public/Protected
  • All
Menu

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

Hierarchy

  • Runnable

Index

Methods

Constructors

Properties

Methods

Constructors

Properties

id: string

Unique ID for Runnable function.

task: RunnableTask<ArgDataT, ReturnT> | RunnableTaskSync<ArgDataT, ReturnT>

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.

Generated using TypeDoc