collect

external fun collect()(source)

Trigger new collection and wait for its completion.

Since Kotlin

1.9