#[unsafe(no_mangle)]pub unsafe extern "C" fn patch_seq_scheduler_run() -> StackExpand description
Run the scheduler and wait for all coroutines to complete
§Safety
Returns the final stack (always null for now since May handles all scheduling). This function blocks until all spawned strands have completed.
Uses a condition variable for event-driven shutdown synchronization rather than polling. The mutex is only held during the wait protocol, not during strand execution, so there’s no contention on the hot path.