How to use kotlin coroutines with netflix-dgs #1836
-
We're currently utilizing DGS, and the majority of our source code is written in Kotlin. I'm exploring how to effectively use Kotlin coroutines within this context. At present, my approach is to consider converting my coroutine jobs to CompletableFuture instances. However, I'm uncertain if this is the best practice or the most efficient method. Any insights or suggestions on this matter would be greatly appreciated.
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hi @khacsinhcs, we have some examples you can reference of using coroutines with the dgs-framework here: https://github.com/Netflix/dgs-framework/blob/master/graphql-dgs/src/test/kotlin/com/netflix/graphql/dgs/CoroutineDataFetcherTest.kt |
Beta Was this translation helpful? Give feedback.
Hi @khacsinhcs, we have some examples you can reference of using coroutines with the dgs-framework here: https://github.com/Netflix/dgs-framework/blob/master/graphql-dgs/src/test/kotlin/com/netflix/graphql/dgs/CoroutineDataFetcherTest.kt