Step
Five states: the stdlib's six, less the two that go with yieldAll's delegate-pull, plus the split of its single Failed — see Resuming.
Entries
Buffer empty: run the body forward to its next yield.
Held only across resume, and overwritten before it returns — by yieldRaw, by completion, or by Failed. Seeing it afterwards means the body suspended on something that is not yield and will wake on a foreign thread; RestrictsSuspension makes that unreachable, so this is an assertion. The stdlib merges this case with Failed and reports both as "Iterator has failed.".
Properties
Functions
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
Returns an array containing the constants of this enum type, in the order they're declared.