Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reusing AbortRegistration #2850

Open
ilammy opened this issue Apr 18, 2024 · 0 comments
Open

Reusing AbortRegistration #2850

ilammy opened this issue Apr 18, 2024 · 0 comments

Comments

@ilammy
Copy link

ilammy commented Apr 18, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant