Skip to main content

set_job_queue_drain

Function set_job_queue_drain 

Source
pub fn set_job_queue_drain(drain_fn: fn(&mut JSContext))
Expand description

Register the job queue drain callback.

Called by bao_engine during initialization to register its JobQueue::drain function. This allows bun_sm to drain microtasks without depending on bao_engine.