https://kotlinlang.org logo
#graphql-kotlin
Title
# graphql-kotlin
r

rocketraman

02/16/2022, 5:06 PM
Is there a way to get the current coroutine scope from the context? I want to start some
async
calls but can't create them in my own scope, because the async calls are lazy and will only resolve if the graphql server actually requests the fields that require the async data. Using
GlobalScope
works, but breaks structured concurrency.
j

Joe

02/16/2022, 5:13 PM
https://github.com/ExpediaGroup/graphql-kotlin/pull/1349 recently merged to master looks like it cleans up the graphql context map and stores a scope in it
👍 2
r

rocketraman

02/16/2022, 5:57 PM
That works great, thank you
2 Views