(Anonymous)

The container for instance methods for the TaskExecution structure.

This feature is experimental!

This API is still experimental, so it may change or be removed in future versions. You should not rely on it for production applications.

Documentation

The container for instance methods for the TaskExecution structure.

Properties

Cancelling tasks

cancel()

Cancels a task execution. Does nothing if the task has already been resolved.

Extracting eventual values

future()

Gets the eventual value of a Task as a Folktale Future.

promise()

Gets the eventual value of the task as a JavaScript's Promise.

Reacting to Task state transitions

listen()

Adds a functions to be called when the task settles for each possible state it can transition to.

Types

constructor()

Represents the execution of a Task, with methods to cancel it, react to its results, and retrieve its eventual value. TaskExecution objects aren't created directly by users, but instead returned as a result from Task's run() method. b

Experimental

(Uncategorised)

Stability
experimental
Authors
Authors
  • Quildreen Motta
Maintainers
  • Quildreen Motta <queen@robotlolita.me> (http://robotlolita.me/)