Skip to content

FunctionTaskExecutor

Runs a FunctionTask by calling its function each time it is resumed.

Inheritance

Constructors

FunctionTaskExecutor

FunctionTaskExecutor()

Properties

probes

List<Probe> get probes
override

The probes in this task executor. Empty for tasks without measures.

Methods

onInitialize

bool onInitialize()
override

Called by initialize. Returns true if successfully initialized.

If false, the executor stays in ExecutorState.Created. This is a synchronous method and must be light-weight.

onResume

Future<bool> onResume()
override

Called by resume. Returns true if successfully resumed.

If false, the executor moves to ExecutorState.PausedButShouldBeResumed.