TaskExecutionControl constructor

const TaskExecutionControl({
  1. void heartbeat() = _noopHeartbeat,
  2. Future<void> extendLease(
    1. Duration by
    ) = _noopExtendLease,
  3. Future<void> progress(
    1. double percentComplete, {
    2. Map<String, Object?>? data,
    }) = _noopProgress,
  4. TaskCancellationToken cancellation = const TaskCancellationToken.none(),
  5. TaskEnqueuer? enqueuer,
  6. WorkflowCaller? workflows,
  7. WorkflowEventEmitter? workflowEvents,
})

Creates execution controls for the current delivery runtime.

Implementation

const TaskExecutionControl({
  this.heartbeat = _noopHeartbeat,
  this.extendLease = _noopExtendLease,
  this.progress = _noopProgress,
  this.cancellation = const TaskCancellationToken.none(),
  this.enqueuer,
  this.workflows,
  this.workflowEvents,
});