Package com. apollographql. apollo3. internal
Types
ConcurrentQueue
Link copied to clipboard
InvokeOnCancellation
Link copied to clipboard
MainContinuation
Link copied to clipboard
SingleThreadWorker
Link copied to clipboard
Functions
suspendAndResumeOnMain
Link copied to clipboard
suspend fun <R> suspendAndResumeOnMain(block: (MainContinuation<R>, InvokeOnCancellation) -> Unit): R
Content copied to clipboard
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.