Comment #0 by destructionator — 2020-09-27T13:10:25Z
The implementation of Fiber.yield does:
cur.m_state = State.HOLD;
cur.switchOut();
cur.m_state = State.EXEC;
This makes it useless for threaded work, the state of HOLD is set before it actually starts holding and another thread can corrupt it.
Comment #1 by robert.schadek — 2024-12-07T13:40:42Z