kingsley09/17/2017, 12:41 PM
is lightweight and it’s more like the representation of the state of the coroutine.
itself is actually a
, but with more capability. It holds the result of the execution 2. The behavior of
is slightly different in that
will propagate any exceptions thrown, whereas
saves that result/exception in the
. This also makes sense given the description in (1) above. This is only my understanding of it. Perhaps someone will put up a more detailed description of the design decisions.