All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.com.apollographql.apollo3.testing.channels.kt Maven / Gradle / Ivy

There is a newer version: 4.0.0-beta.7
Show newest version
package com.apollographql.apollo3.testing

import com.apollographql.apollo3.annotations.ApolloExperimental
import kotlinx.coroutines.channels.Channel
import kotlinx.coroutines.withTimeout

@ApolloExperimental
suspend fun  Channel.receiveOrTimeout(timeoutMillis: Long = 1000) = withTimeout(timeoutMillis) {
  receive()
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy