Skip to content

Commit

Permalink
fix: @Throws on suspend declaration must have CancellationException
Browse files Browse the repository at this point in the history
  • Loading branch information
y9vad9 committed Feb 27, 2024
1 parent 039ca29 commit 8787bbc
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package org.timemates.sdk.common.pagination

import kotlinx.coroutines.CancellationException
import org.timemates.sdk.common.annotations.ApiStatus
import org.timemates.sdk.common.annotations.ExperimentalTimeMatesApi
import org.timemates.sdk.common.constructor.createOrThrow
Expand Down Expand Up @@ -38,7 +39,7 @@ public interface PagesIterator<T> {
* @return The list of elements in the next page.
* @throws NoSuchElementException if there are no more pages available.
*/
@Throws(NoSuchElementException::class)
@Throws(NoSuchElementException::class, CancellationException::class)
public suspend operator fun next(): Result<List<T>>

/**
Expand Down

0 comments on commit 8787bbc

Please sign in to comment.