Is there a way to get the current coroutine scope ...
# graphql-kotlin
r
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
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
That works great, thank you