Wakes waiters through one thread-safe JSCallback that the native I/O threads call with the id of a handle that became ready. Bun marshals each call onto the JS thread. Thread-safe callbacks are experimental in Bun.
JSCallback
Releases a handle's claim on the channel, tearing it down when none remain.
Starts the notification channel for a new handle; every open is paired with a close.
open
close
Resolves when the native side next reports handle ready.
handle
Wakes waiters through one thread-safe
JSCallbackthat the native I/O threads call with the id of a handle that became ready. Bun marshals each call onto the JS thread. Thread-safe callbacks are experimental in Bun.