You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
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
The text was updated successfully, but these errors were encountered: