muliyul
08/27/2020, 4:09 PMAsyncResponse
to a suspend function (supporting resource suspend
functions transparently).
Existing:
class SomeResource {
@GET
fun someMethod(@Suspended asyncResponse: AsyncResponse) { ... }
}
Desired:
class SomeResource {
@GET
suspend fun someMethod() { ... }
}
satyan
08/27/2020, 4:47 PMmuliyul
08/27/2020, 6:55 PMtddmonkey
08/28/2020, 7:45 AMsatyan
08/28/2020, 8:07 AMJoe
08/28/2020, 5:44 PMJoe
08/29/2020, 4:29 PMModelProcessor
that rebuilds the resource model ignoring the Continutation
parameter is the way to fix that, but haven't gotten it to work yet.muliyul
09/01/2020, 8:27 AMJoe
09/01/2020, 3:35 PMModelProcessor
approach, but currently losing parameter annotations (eg @QueryParam("argName")
) when creating a copy of the resource method via javassist/bytebuddy. That approach seems better than the current commit, but generating the method @ runtime is being a little tricky.Joe
09/01/2020, 8:17 PMmuliyul
09/02/2020, 9:05 AMCoroutineScope
).
If I want to use this, how do I import without the extra libraries in the repo?Joe
09/02/2020, 6:01 PMcom.trib3:server
jar, exclude all transitive deps, and only reference the CoroutineModelProcessor
class in your codebase.... it'll still add all our classes to the classpath, but they shouldn't even get loaded by any classloaders as long as nothing references them (I think but have not tried!). Otherwise you could play around with unpack/repacking the jar in your build but that may or may not get more complex than is worth?Joe
09/03/2020, 6:24 PMmuliyul
09/05/2020, 4:35 PMJoe
09/06/2020, 7:20 PMJoe
09/10/2020, 12:24 AMmuliyul
09/10/2020, 3:10 PMJoe
03/11/2022, 4:18 PMJoe
04/04/2022, 8:24 PM