Readonly
dataThe data of the fiber, used to store and swap data between fiber and the controller.
Abort the fiber execution by sending an abort signal.
The fiber execution should listen to the signal and quit its execution immediately when the signal is received, if you wanna make the fiber execution controllable with the abort signal.
Check if the fiber is under EXITED state.
Check if the fiber is under RUNNING state.
Check if the fiber is under SLEEPING state.
If the fiber is sleeping, wake it up. Otherwise, do nothing.
Returns true if the fiber was successfully woken up, false otherwise.
Wait until the fiber exits.
A controller class for asynchronous fiber execution.
User can control the fiber execution by aborting it, hibernating it, or resuming it, and of course, waiting for it to finish.