Stream: wg-async-foundations

Topic: async blocks are always by "move", right?


nikomatsakis (Jul 05 2019 at 18:28, on Zulip):

Quick check: I presume that async { ... } always captures its environment by move?

centril (Jul 05 2019 at 19:35, on Zulip):

@nikomatsakis That seems strange since we have async move { ... } and also:
- https://github.com/rust-lang/rust/blob/853f30052d019a8ebe197a5adff3a29d6716a955/src/libsyntax/parse/parser.rs#L3323-L3341

nikomatsakis (Jul 05 2019 at 19:36, on Zulip):

Hmm, indeed. Perhaps I am mistaken.

nikomatsakis (Jul 05 2019 at 19:58, on Zulip):

lol it seems i've been typing async move { } without even noticing

Taylor Cramer (Jul 08 2019 at 20:58, on Zulip):

haha

Last update: Nov 18 2019 at 02:05UTC