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

docs: Mention drop() is not run for detached tasks #70

Closed
wants to merge 1 commit into from

Conversation

vojtechkral
Copy link

Copy link
Member

@notgull notgull left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is inaccurate. The Future's drop is run, when the Runnable (or the corresponding Executor in the case of async-executor) is dropped. This comment should be on smol::block_on, where the drop() is actually never run (since the Executor is never dropped).

Thanks anyways!

@notgull notgull closed this Jan 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

Destructors aren't run for detached tasks
2 participants