kmongo / org.litote.kmongo.coroutine / CoroutineListIndexesPublisher

CoroutineListIndexesPublisher

class CoroutineListIndexesPublisher<T : Any> : CoroutinePublisher<T> (source)

Coroutine wrapper around CoroutineListIndexesPublisher.

Constructors

<init>

Coroutine wrapper around CoroutineListIndexesPublisher.

CoroutineListIndexesPublisher(publisher: ListIndexesPublisher<T>)

Properties

publisher

val publisher: ListIndexesPublisher<T>

Functions

batchSize

Sets the number of documents to return per batch.

fun batchSize(batchSize: Int): CoroutineListIndexesPublisher<T>

first

Helper to return a publisher limited to the first result.

suspend fun first(): T?

maxTime

Sets the maximum execution time on the server for this operation.

fun maxTime(maxTime: Long, timeUnit: TimeUnit): CoroutineListIndexesPublisher<T>