smol-rs / event-listener

Notify async tasks or threads
Apache License 2.0
449 stars 30 forks source link

Avoid spinning when waiting for deadline #107

Closed AntonSol919 closed 11 months ago

AntonSol919 commented 11 months ago

wait_deadline uses 100% CPU.

I'm unfamiliar with the intricacies as this fix requires parking #[cfg(not(loom))]. If spinning was done intentionally it should probably be documented.