Generator-based asynchronous callback hook (convenience 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 any given time
callback argument types
yielded underlying type
yielded task type
task generator function; the generator returns void
dependency list
callback to be invoked
useGeneratorCallbackState
Task is not cancelled on hook re-render, but is cancelled on the next call instead
Generator-based asynchronous callback hook (convenience 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 any given time