Yielding inside fibers
athanggupte opened this issue · comments
Athang Gupte commented
Assumption: A fiber would only want to switch to another fiber that it is explicitly "familiar" with - like a child fiber or a parent fiber. (Or another sibling fiber)
So we can simply CreateFiberFromJobDecl
for a JobDecl
and then switchToFiber
.
Yielding will yield to the jobSchedulerFiber
(does not take any input arguments)