Skip to content

Commit f75cc17

Browse files
PaulWoitaschekqwwdfsad
authored andcommitted
Fixed sample to use awaitClose instead of await
Because there is no `await`
1 parent 6130238 commit f75cc17

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kotlinx-coroutines-core/common/src/flow/Builders.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,7 @@ public fun <T> channelFlow(@BuilderInference block: suspend ProducerScope<T>.()
305305
* }
306306
* api.register(callback)
307307
* // Suspend until either onCompleted or external cancellation are invoked
308-
* await { api.unregister(callback) }
308+
* awaitClose { api.unregister(callback) }
309309
* }
310310
* ```
311311
*/

0 commit comments

Comments
 (0)