Can not call kotlinx.coroutines.future.await
on output from DataFetchingEnvironment::getValueFromDataLoader after updating to 7.1.x
#2017
Labels
type: bug
Something isn't working
Library Version
Tried on 7.1.1 and 7.1.4. Worked previously on 7.0.2.
Describe the bug
kotlinx.coroutines.core
has a functionkotlinx.coroutines.future.await
for converting CompletableFutures to coroutines. In previous versions of this library, callingawait()
on the output ofDataFetchingEnvironment::getValueFromDataLoader
was something we used extensively in our code, but now it causes all requests doing this to timeout.To Reproduce
I found one part in our code where I can easily fix/break it with only this
await
differing between the two.This is the working variant, which is not using
await()
This is the broken variant which causes timeouts:
The only difference here is removal of
CompletableFuture
in the return type and addition of.await()
Expected behavior
The two approaches should have the same effect.
The text was updated successfully, but these errors were encountered: