Expand description
Link-time extern implementations for EventLoopTimer and FilePoll.
In upstream Bun, bun_runtime::dispatch contains the full ~96-variant
task dispatcher, the ~13-variant FilePoll dispatcher, and timer dispatch.
Bao only uses SpiderMonkey (no JSC), so the full task/poll dispatch tables
are unnecessary — we only bridge the timer dispatch. The FilePoll dispatch
(__bun_run_file_poll) is provided as a no-op stub here because our
runtime does not implement the Bun-specific poll-tag dispatch vtable;
bun_io::posix_event_loop declares it extern "Rust" and expects it at
link time.
Functions§
- __
bun_ ⚠dns_ prefetch - DNS cache warm — declared
extern "Rust"frombun_dns. - __
bun_ ⚠fire_ timer - Fire a timer callback.
- __
bun_ get_ vm_ ctx - Process-global / thread-local event-loop context selector.
- __
bun_ ⚠js_ timer_ epoch - Get the JS-timer epoch for heap ordering.
- __
bun_ ⚠run_ file_ poll - FilePoll owner dispatch — routes
on_updateto the correct handler based on thePollTagstored inFilePoll.owner.