Previous: Handling Errors

Next: Derived State

Child Tasks

Tasks can call other tasks by awaiting the result of anotherTask.perform(). When this happens, the Parent task will wait for the Child task to complete before proceeding. If the Parent task is canceled, the Child task will automatically be canceled as well.

Example

Waiting to start
  • Parent Task: idle
  • Child Task: idle
  • Grandchild Task: idle




Previous: Handling Errors

Next: Derived State