Skip to content

Allow !Unpin Futures in select! #1873

New issue

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

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

Already on GitHub? # to your account

Closed

Conversation

Matthias247
Copy link
Contributor

This adds support for directly select!ing on !Unpin Futures as long
as those Futures are returned by expressions by stack-pinning the
Futures.

For the common case where the futures are the result of an async fn
call this will increase the ergonomics of the macro a lot, since no
explicit binding and stack pinning is required.

Partially resolves #1811 (it does not affect the borrow-checking
requirements)

This adds support for directly `select!`ing on !Unpin Futures as long
as those Futures are returned by expressions by stack-pinning the
Futures.

For the common case where the futures are the result of an `async fn`
call this will increase the ergonomics of the macro a lot, since no
explicit binding and stack pinning is required.

Partially resolves rust-lang#1811 (it does not affect the borrow-checking
requirements)
@Matthias247
Copy link
Contributor Author

This has already been merged as part of #1874

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

Successfully merging this pull request may close these issues.

Make futures::select! not require it's arguments to be Unpin
1 participant