mirror of
https://github.com/InsanusMokrassar/PlaguPoster.git
synced 2025-09-14 20:49:36 +00:00
add retryOnPostFailureTimes
This commit is contained in:
@@ -5,4 +5,9 @@ import dev.inmo.plaguposter.posts.models.PostId
|
||||
|
||||
interface Selector {
|
||||
suspend fun take(n: Int = 1, now: DateTime = DateTime.now(), exclude: List<PostId> = emptyList()): List<PostId>
|
||||
suspend fun takeOneOrNull(now: DateTime = DateTime.now(), exclude: List<PostId> = emptyList()): PostId? = take(
|
||||
n = 1,
|
||||
now = now,
|
||||
exclude = exclude
|
||||
).firstOrNull()
|
||||
}
|
||||
|
Reference in New Issue
Block a user