async
gives you aFuture
whileasync*
gives you aStream
- You add the
async
keyword to a function that does some work that might take a long time. It returns the result wrapped in aFuture
. - You add the
async*
keyword to make a function that returns a bunch of future values one at a time. The results are wrapped in a Stream. async*
will always returns aStream
and offer some syntax sugar to emit a value throughyield
keyword.