drain method
void
drain()
Iterates over all elements, discarding the results.
Useful only if iterating has side-effects, which is uncommon.
Implementation
void drain() {
for (void _ in this) {}
}
Iterates over all elements, discarding the results.
Useful only if iterating has side-effects, which is uncommon.
void drain() {
for (void _ in this) {}
}