Namespace: async

olympe. async

Namespace dedicated to asynchronous tasks handling. Provides {olympe.async.Executor Executors} & {olympe.async.Task tasks} APIs.

Classes

Executor
ParallelExecutor
SequencedExecutor

Type Definitions


Task()

An asynchronous task. It is defined by a function that takes 3 arguments:

  • done: a function to call when the task has completed. This is the expected outcome.
  • fail: a function to call when the task failed and the executor should abort.
  • env: a Map that is passed between tasks and can be used to carry arbitrary values. This map will always contain an 'Executor' key whose value will be the Executor handling the task.