Skip to content

Commit ccb2b3a

Browse files
committed
change inner flow complete to suspendComplete
1 parent 51645b0 commit ccb2b3a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/commonMain/kotlin/com.adamratzman.spotify/SpotifyRestAction.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ class SpotifyRestActionPaging<Z : Any, T : AbstractPagingObject<Z>>(api: Spotify
194194
@ExperimentalCoroutinesApi
195195
fun flowPagingObjects(context: CoroutineContext = Dispatchers.Default): Flow<AbstractPagingObject<Z>> =
196196
flow {
197-
complete().also { master ->
197+
suspendComplete(context).also { master ->
198198
emitAll(master.flowBackward())
199199
emit(master)
200200
emitAll(master.flowForward())

0 commit comments

Comments
 (0)