Accessing to Fiber State

Volkan Yazıcı volkan.yazici at
Sat Dec 15 22:33:59 UTC 2018


AFAIU from the source code, one is supposed to create fibers via
Fiber.schedule(), that is not via extending Fiber, which is allowed for
Threads. (I think this behavior has been introduced pretty recently.) Using
factory method makes it impossible to access to Fiber#getState(). Am I
missing something? How can we access to the state of a Fiber?

(For those interested, the context is as follows: I need to confirm that a
fiber is indeed parked to avoid a race condition. The relevant fix for
plain Threads:


More information about the loom-dev mailing list