pub enum CoroutineState<Y, R> {
Yielded(Y),
Complete(R),
}
🔬This is a nightly-only experimental API. (
coroutine_trait
)Expand description
The result of a coroutine resumption.
This enum is returned from the Coroutine::resume
method and indicates the
possible return values of a coroutine. Currently this corresponds to either
a suspension point (Yielded
) or a termination point (Complete
).