kgraphql / com.apurebase.kgraphql.test / DefaultLoaderQueueImpl

DefaultLoaderQueueImpl

class DefaultLoaderQueueImpl<K, V> : LoaderQueue<K, V>

Constructors

<init>

DefaultLoaderQueueImpl()

Functions

enqueue

suspend fun enqueue(key: K, deferred: CompletableDeferred<V>): Unit

getAllItemsAsList

returns all stored Items as List and clears the queue (Coroutine-Save)

suspend fun getAllItemsAsList(): List<LoaderQueueEntry<K, CompletableDeferred<V>>>