ConcurrencyInfo

class ConcurrencyInfo(val dispatcher: CoroutineDispatcher, val coroutineScope: CoroutineScope) : ExecutionContext.Element

Gives access to ApolloClient dispatcher and scope. This is used by the normalized cache to execute cache writes in the background.

Parameters

dispatcher

the ApolloClient dispatcher

coroutineScope

a scope bound to this ApolloClient. Canceled when ApolloClient.close is called.

See also

Constructors

Link copied to clipboard
constructor(dispatcher: CoroutineDispatcher, coroutineScope: CoroutineScope)

Types

Link copied to clipboard

Properties

Link copied to clipboard
val coroutineScope: CoroutineScope
Link copied to clipboard
val dispatcher: CoroutineDispatcher
Link copied to clipboard
open override val key: ExecutionContext.Key<*>

Functions

Link copied to clipboard
open override fun <R> fold(initial: R, operation: (R, ExecutionContext.Element) -> R): R
Link copied to clipboard
open operator override fun <E : ExecutionContext.Element> get(key: ExecutionContext.Key<E>): E?
Link copied to clipboard
open override fun minusKey(key: ExecutionContext.Key<*>): ExecutionContext
Link copied to clipboard
open operator fun plus(context: ExecutionContext): ExecutionContext