Skip to content

Kotlin Suspend functions, passing custom coroutine context #230

Closed
@kubino

Description

@kubino

Dear authors. We would like to thank you for you effort on this fantastic library. We are using it with Kotlin coroutines functions and it works flawlessly. However we have some sort of issues when it comes to integrate libraries which are depending on ThreadLocal pattern. We have identified line where the coroutines are called: https://github.com/graphql-java-kickstart/graphql-java-tools/blob/master/src/main/kotlin/com/coxautodev/graphql/tools/MethodFieldResolver.kt#L159si - as far we understood it , there is no way to pass custom context. Would be very helpfull to have some sort of hook, which can help us to modify(enhance - via TracingContextElement) the coroutine context based on Servlet Thread. Any thoughts would be appreciated

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions