jeggy06/14/2020, 5:23 PM
every now and then all around in the code, so if any cancelation is requested that all my coroutines will cancel? And if so, how expensive is it to call
octylFractal06/14/2020, 5:30 PM
because that won't suspend at all, unlike
. suspending is not too expensive, but it does stop work for a tiny bit
jeggy06/14/2020, 5:36 PM
upon each iteration?
octylFractal06/14/2020, 5:42 PM
jeggy06/14/2020, 5:45 PM
and then I had some problems with it that it still went on for some minutes after it should have been canceled. So I'm just trying to figure out what's the best way to really cancel the execution.
octylFractal06/14/2020, 5:47 PM
jeggy06/14/2020, 5:47 PM
each time I'm calling the provided lambda by the user of this library 🙂
octylFractal06/14/2020, 5:49 PM
jeggy06/14/2020, 5:50 PM
octylFractal06/14/2020, 5:51 PM
jeggy06/14/2020, 5:52 PM
This is the function I'm exposing from this library. But it could be that the code provided is using some blocking code.
fun resolver(function: suspend (T) -> R)
octylFractal06/14/2020, 5:53 PM
jeggy06/14/2020, 5:54 PM
, and see how it works with big data sets