@@ -15,7 +15,7 @@ import kotlinx.coroutines.reactive.*
15
15
*
16
16
* @throws NoSuchElementException if the publisher does not emit any value
17
17
*/
18
- public suspend fun <T > Flow.Publisher<T>.awaitFirst (): T =
18
+ suspend fun <T > Flow.Publisher<T>.awaitFirst (): T =
19
19
FlowAdapters .toPublisher(this ).awaitFirst()
20
20
21
21
/* *
@@ -27,7 +27,7 @@ public suspend fun <T> Flow.Publisher<T>.awaitFirst(): T =
27
27
* If the [Job] of the current coroutine is cancelled while the suspending function is waiting, this
28
28
* function immediately cancels its [Flow.Subscription] and resumes with [CancellationException].
29
29
*/
30
- public suspend fun <T > Flow.Publisher<T>.awaitFirstOrDefault (default : T ): T =
30
+ suspend fun <T > Flow.Publisher<T>.awaitFirstOrDefault (default : T ): T =
31
31
FlowAdapters .toPublisher(this ).awaitFirstOrDefault(default)
32
32
33
33
/* *
@@ -38,7 +38,7 @@ public suspend fun <T> Flow.Publisher<T>.awaitFirstOrDefault(default: T): T =
38
38
* If the [Job] of the current coroutine is cancelled while the suspending function is waiting, this
39
39
* function immediately cancels its [Flow.Subscription] and resumes with [CancellationException].
40
40
*/
41
- public suspend fun <T > Flow.Publisher<T>.awaitFirstOrNull (): T ? =
41
+ suspend fun <T > Flow.Publisher<T>.awaitFirstOrNull (): T ? =
42
42
FlowAdapters .toPublisher(this ).awaitFirstOrNull()
43
43
44
44
/* *
@@ -50,7 +50,7 @@ public suspend fun <T> Flow.Publisher<T>.awaitFirstOrNull(): T? =
50
50
* If the [Job] of the current coroutine is cancelled while the suspending function is waiting, this
51
51
* function immediately cancels its [Flow.Subscription] and resumes with [CancellationException].
52
52
*/
53
- public suspend fun <T > Flow.Publisher<T>.awaitFirstOrElse (defaultValue : () -> T ): T =
53
+ suspend fun <T > Flow.Publisher<T>.awaitFirstOrElse (defaultValue : () -> T ): T =
54
54
FlowAdapters .toPublisher(this ).awaitFirstOrElse(defaultValue)
55
55
56
56
/* *
@@ -63,7 +63,7 @@ public suspend fun <T> Flow.Publisher<T>.awaitFirstOrElse(defaultValue: () -> T)
63
63
*
64
64
* @throws NoSuchElementException if the publisher does not emit any value
65
65
*/
66
- public suspend fun <T > Flow.Publisher<T>.awaitLast (): T =
66
+ suspend fun <T > Flow.Publisher<T>.awaitLast (): T =
67
67
FlowAdapters .toPublisher(this ).awaitLast()
68
68
69
69
/* *
@@ -77,5 +77,5 @@ public suspend fun <T> Flow.Publisher<T>.awaitLast(): T =
77
77
* @throws NoSuchElementException if the publisher does not emit any value
78
78
* @throws IllegalArgumentException if the publisher emits more than one value
79
79
*/
80
- public suspend fun <T > Flow.Publisher<T>.awaitSingle (): T =
80
+ suspend fun <T > Flow.Publisher<T>.awaitSingle (): T =
81
81
FlowAdapters .toPublisher(this ).awaitSingle()
0 commit comments