maxmello
01/16/2019, 10:41 AMGlobalScope.launch(<http://Dispatchers.IO|Dispatchers.IO>) { synchronized(lock) { // some operations } } potentially worse than thread { synchronized(lock) { // some operations } }?zokipirlo
01/16/2019, 10:59 AMactor and sealed class to define operations which I want to do.maxmello
01/16/2019, 12:20 PMzokipirlo
01/16/2019, 1:07 PMlaunch { while (isActive) { doSomething(); delay(1000)}}. Simple implementation of ticker. It works without a problem. Nothing is blocked. When you cancel coroutineContext, coroutine (while) is also stopped. Much better than Rx intervals 🙂Dico
01/16/2019, 4:22 PMwithContext (IO) {} block.uli
01/16/2019, 8:24 PMDico
01/16/2019, 8:25 PMDico
01/16/2019, 8:28 PMDico
01/16/2019, 8:28 PMuli
01/16/2019, 8:29 PMDico
01/16/2019, 8:29 PMuli
01/16/2019, 8:29 PMDico
01/16/2019, 8:29 PMhttps://i.imgur.com/QAxW9U7.png▾