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
How to reuse AbortRegistration for multiple futures?
I have a future that I want to make Abortable. When that future completes, I need to make a new one and have it abortable as well, by the same AbortHandle.
One way would be to wrap this control sequence into another future and wrap that in Abortable. But it's not always convenient.
Would it be possible to impl Clone for AbortRegistration? That way, any number of tasks can be made Abortable via the same AbortHandle.
The text was updated successfully, but these errors were encountered:
How to reuse
AbortRegistration
for multiple futures?I have a future that I want to make
Abortable
. When that future completes, I need to make a new one and have it abortable as well, by the sameAbortHandle
.One way would be to wrap this control sequence into another future and wrap that in
Abortable
. But it's not always convenient.Would it be possible to
impl Clone for AbortRegistration
? That way, any number of tasks can be madeAbortable
via the sameAbortHandle
.The text was updated successfully, but these errors were encountered: