dave08
10/18/2017, 9:52 AMfun startSync() { runBlocking { syncStartChannel.send(Unit) } }.
Then I thought that might be overkill so I tried a Mutex fun startSync() { runBlocking { mux.lock(); try { syncStartChannel.send(Unit) } finally { mux.unlock() } } }. It worked at a certain time, then for some reason the sync gets skipped altogether...
Is there any better way?