Join us from October 8-10 in New York City to learn the latest tips, trends, and news about GraphQL Federation and API platform engineering.Join us for GraphQL Summit 2024 in NYC
Docs
Start for Free
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
Rate articleRateEdit on GitHubEditForumsDiscord

© 2024 Apollo Graph Inc., d/b/a Apollo GraphQL.

Privacy Policy

Company