Package com.apollographql.apollo3.internal

Types

ConcurrentQueue
Link copied to clipboard
apple
class ConcurrentQueue<T>
DeferredJsonMerger
Link copied to clipboard
common
class DeferredJsonMerger
Utility class for merging GraphQL JSON payloads received in multiple chunks when using the @defer directive.
GCDWorker
Link copied to clipboard
apple
class GCDWorker(qos: <ERROR CLASS>)
InvokeOnCancellation
Link copied to clipboard
apple
typealias InvokeOnCancellation = (<ERROR CLASS>) -> Unit
MainContinuation
Link copied to clipboard
apple
class MainContinuation<R>(continuation: <ERROR CLASS><R>)
A continuation that will always dispatch on the main thread
MultipartReader
Link copied to clipboard
common
class MultipartReader(source: <ERROR CLASS>, boundary: String)
This was copied from OkHttp and slightly modified to work in a Multiplatform project.
SingleThreadWorker
Link copied to clipboard
apple
class SingleThreadWorker<S : Any>(producer: () -> S, finalizer: (S) -> Unit)

Functions

suspendAndResumeOnMain
Link copied to clipboard
apple
suspend fun <R> suspendAndResumeOnMain(block: (MainContinuation<R>, InvokeOnCancellation) -> Unit): R
Suspends the current coroutine and calls block with a MainContinuation that will always dispatch on the main threadblock will initially be called in the main thread but it's ok to call MainContinuation.resumeWith from any thread, MainContinuation will ensure that the final result is delivered to the main thread.