saket
09/01/2019, 8:16 PMlouiscad
09/02/2019, 7:13 AMFlow
official doc fits in one page, and it's basically built upon 3 base functions: flow { ... }
(creates a cold Flow
, lambda executed on each flow activation), emit(element)
available from the flow
lambda, emits an element, and `collect { e -> ... }`: collects all elements, unless the coroutine is cancelled (either from inside or outside). All other operators are build on that, and are pretty straightforward, and accompanied with doc.