Hi all, i’m working with kotlin coroutines and vert.x and it’s amazing, so simple, fast and lightweight.
And as a Java developer, coming from JEE, i want to use CDI (Weld).
In simple things it works fine, but when i try to propagate @RequestScope in coroutine call the problems begin.
Weld is developed do work with ThreadLocal storage for scope, and propagate that scope in a Stack, coroutines are more complex than it, and the request scope not work correctly, in simple method call with coroutines the request scope is not propagated.
So I want help about how correct propagate that scope, in my research i see suggestions to work with custom CoroutineScope or Create a custom CDI Scope.