Skip to content

Conversation

@alexcrichton
Copy link
Member

It's a benign failure that no one needs to know about.

Closes #14892

Copy link
Contributor

Choose a reason for hiding this comment

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

Clever use of TLS. I didn't realize you could use it that way to find out if the task exited due to failure or not.

Seems to me you can skip the atomics though, and just use a separate channel. Have Bomb send task::failing() across a channel and read it on the other side.

Copy link
Member Author

Choose a reason for hiding this comment

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

Sounds like a good idea!

It's a benign failure that no one needs to know about.

Closes rust-lang#14892
@alexcrichton alexcrichton deleted the issue-14892 branch June 17, 2014 04:37
bors added a commit to rust-lang-ci/rust that referenced this pull request Jun 5, 2023
Shrink `DefMap`, share crate level items with block def maps
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

Successfully merging this pull request may close these issues.

"failed at 'sending on a closed channel'" when using Future

2 participants