krotki
08/10/2017, 1:47 PMCoroutineRestOperations
from that lib and it doesn't require setuping a context so I don't really know. I suspect it's only syntax sugar but who knows ...krotki
08/10/2017, 1:48 PMaaverin
08/10/2017, 1:50 PM@Async
with futures to coroutines a few days ago, and now stage environment times outaaverin
08/10/2017, 1:50 PMaaverin
08/10/2017, 1:50 PMkrotki
08/10/2017, 2:21 PMfun fn() = async(ComonPool) {
}
aaverin
08/10/2017, 2:21 PMkrotki
08/10/2017, 2:23 PMaaverin
08/10/2017, 2:23 PMkrotki
08/10/2017, 2:24 PMkrotki
08/10/2017, 2:25 PMkrotki
08/10/2017, 2:25 PMkrotki
08/10/2017, 2:26 PMaaverin
08/10/2017, 2:29 PMkrotki
08/10/2017, 2:29 PMCommonPool
defaults to (Runtime.getRuntime().availableProcessors() - 1).coerceAtLeast(1)
so you should have at least 1 thread but if you do not suspend too often then you will have problemsaaverin
08/10/2017, 2:30 PMasync()
lambda is suspend
, as far as I recallkrotki
08/10/2017, 2:40 PMsauloaguiar
08/10/2017, 11:49 PMsauloaguiar
08/10/2017, 11:49 PMtjb
08/10/2017, 11:50 PMsauloaguiar
08/10/2017, 11:52 PMmichael.barker
08/11/2017, 1:44 AMaaverin
08/11/2017, 8:19 AMaaverin
08/11/2017, 8:19 AMasync()
word is kinda confusing, if it’s not really meant for heavy async operationssdeleuze
08/11/2017, 9:13 AMxantier
08/11/2017, 9:15 AMxantier
08/11/2017, 9:19 AMdharrigan
08/11/2017, 9:29 AMxantier
08/11/2017, 10:31 AMxantier
08/11/2017, 10:36 AM