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
When a task starts, it has a reference count of 2. If the JoinHandle is dropped, we can only run a task once before it gets deallocated (since a Task will cause a ref decrement on yield/completion). This is not correct. It should complete since it was not explicitly cancelled.
The text was updated successfully, but these errors were encountered:
Turns out this doesn't work in practice (in my executor). Reason being is that whenever a waker is registered, it is cloned. So we always end up with enough ref counts to keep a task valid. This may not always be true however but right now it is and therefore I can ignore this problem.
When a task starts, it has a reference count of 2. If the
JoinHandle
is dropped, we can only run a task once before it gets deallocated (since aTask
will cause a ref decrement on yield/completion). This is not correct. It should complete since it was not explicitly cancelled.The text was updated successfully, but these errors were encountered: