Skip to content

Glossary: Kotlin Beyond the Basics

collect

Also written: emit

`collect` receives each value of a flow, and `emit` sends one from inside a `flow { }` block. Both are suspend functions.

Where the book teaches it

Related terms

flow