Generator-based asynchronous callback hook (convinience binding)
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
callback arguments type
yielded task type
resulting task resolve type
task generator function
dependency list
callback to be invoked
Rest
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 (convinience binding)
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