Accessing to Fiber State
Volkan Yazıcı
volkan.yazici at gmail.com
Sat Dec 15 22:33:59 UTC 2018
Hello,
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:
https://github.com/vy/fiber-test/commit/929a898d387114a2721282ef5f789288e1aed453
)
Best.
More information about the loom-dev
mailing list