What triggers Fiber.unpark?

Alan Bateman Alan.Bateman at oracle.com
Thu Oct 17 07:53:21 UTC 2019


On 16/10/2019 21:58, Arkadiusz Gasiński wrote:
> Just noticed that the previous question in the mailing list was pretty much
> the same (what a coincidence) and actually checked your talk from JVMLS,
> @Alan. I’m still wondering what’s calling this InnocuousThread that in turn
> unpark Fiber? Also, is this thread used for all Fiber unparking or only in
> case of I/O?
>
sun.nio.ch.Poller is probably what you want. The `polled` method is 
invoked when a file descriptor is ready and it unparks the fiber that is 
parked waiting on that file descriptor.

-Alan


More information about the loom-dev mailing list