Docs
Launch GraphOS Studio
You're viewing documentation for a previous version of this software. Switch to the latest stable version.

Kotlin coroutines


The Apollo comes with coroutines support with the following :

suspend fun <T> ApolloCall<T>.await()
fun <T> ApolloSubscriptionCall<T>.toFlow(): Flow<Response<T>>
fun <T> ApolloCall<T>.toFlow()
fun <T> ApolloQueryWatcher<T>.toFlow()
fun <T> ApolloSubscriptionCall<T>.toFlow(): Flow<Response<T>>
fun ApolloPrefetch.toJob(): Job

Including in your project

Add the following dependency:

implementation 'com.apollographql.apollo:apollo-coroutines-support:x.y.z'
Previous
Client Awareness
Next
RxJava2
Edit on GitHubEditForumsDiscord

© 2024 Apollo Graph Inc.

Privacy Policy

Company