Open devent opened 4 years ago
Update: if I use Groovy groovy.transform.CompileStatic
annotation then FiberAsync works like the Java version. It's an Ok workaround, but would be nice if Quasar could support dynamic Groovy.
See http://docs.groovy-lang.org/latest/html/gapi/groovy/transform/CompileStatic.html
Hi. I was trying Quasar and was wondering why the examples are not working if I use Groovy and FiberAsync. Here is a slightly modified example code taken from
FiberAsyncTest.java
but complied with Groovy inQuasarFiberAsyncTest.groovy
. The behavior should be identical with the Java compiled version. But it either throws a TimeoutException or never returns from afiber.join()
.Quasar: 0.8.0 Groovy: 2.5.7 Usage:
-ea -javaagent:${QUASAR_CORE_AGENT_JAR}
Console output:
As you can see, callService is two times in the output. In the Java version the output is: