Esa
10/11/2019, 7:35 AMCoroutineScope(EmptyCoroutineContext).async {} calls on the 3 slowest components of that function, and awaiting the results at the end, as well as optimizing the order of the calls.
However, this means that function and every function up to the controller /endpoint now has a suspend qualifier, as well as the controller having a runBlocking {} wrapped around the function (it doesn’t seem like a major issue to me, that endpoint has about a 3.5s runtime now).. And as this is my first foray into coroutines, I’m sort of anxious there’s some drawbacks to this I’m missing.Dariusz Kuc
10/11/2019, 1:44 PMDariusz Kuc
10/11/2019, 1:45 PMrunBlockingAlowaniak
10/11/2019, 7:18 PMMani
10/11/2019, 9:52 PMDariusz Kuc
10/11/2019, 11:04 PMrunBlocking? suspendable (i.e. reactive) controller methods?Esa
10/14/2019, 7:28 AM