4 ms·
> Awaiting is a completely different concept than invoking, why overload it? The wording is a bit imprecise; you can't 'await' something to invoke it, exactly.
by steveklabnik 7y ago
> Awaiting is a completely different concept than invoking, why overload it?
The wording is a bit imprecise; you can't 'await' something to invoke it, exactly. It also won't begin execution until .await is called. What happens is, at some point, you have a future that represents the whole computation, and you pass it to an executor. That's when execution starts.
There's a join macro/function that works the same way as Promise.all, and is what you'd use for parallelism.