Dico
05/27/2019, 3:43 AMdelay
suspend forever, if I pass it a value around 500-1500 MS?
I have some code that is looping with an interval which works perfectly in one environment but not in another - where it's used as a plugin in some other software.
The dispatcher used is a single thread dispatcher created using Executors.newSingleThreadDispatcher(threadFactory).asCoroutineDispatcher()
The behavior I'm seeing is that it never resumes the coroutine.gildor
05/27/2019, 4:11 AMgildor
05/27/2019, 4:12 AMgildor
05/27/2019, 4:16 AMgildor
05/27/2019, 4:16 AMDico
05/27/2019, 6:45 AMDico
05/27/2019, 6:45 AMDico
05/27/2019, 6:45 AMgildor
05/27/2019, 6:49 AMavoiding shared mutable stateI would use actor for this
gildor
05/27/2019, 6:50 AMDico
05/27/2019, 2:06 PMDico
05/28/2019, 1:02 PMDico
05/28/2019, 1:02 PM