callback arguments type
yielded task type
resulting task resolve type
callback to be invoked, current execution status (running or not) and cancellation function
useTaskCallbackState
Task is not cancelled on hook re-render, but is cancelled on the next call instead
Generated using TypeDoc
Generator-based asynchronous callback hook
Generator version of task-callback converting generator to compound task first
Task execution is automatically interrupted in case of additional calls or unmounting. This way, only one task is running at the given time