-
Notifications
You must be signed in to change notification settings - Fork 0
More efficient sleeping #8
Copy link
Copy link
Open
Description
Taking a look at the code I am wondering why I am using polling for the tasks.
For async I can register a future when the queue is empty that I just complete when a new task is added (literally mimicing how I implemented the sleep cancelling for adding in new tasks)
For sync, thinking I could maybe add a conditional variable that I just await with a timer (TODO: Check how accurate the timer is). Might need to get the whole gcsafety working well first though
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels