CLOVIS
10/09/2020, 5:14 PMsuspend
modifier to anything that might be expensive, even if it doesn't suspend, to ensure I don't accidentally call it on the main thread.
Do you think it's a good/bad idea? Are there any performance implications of the added parameter? It's a JVM-only project, and I don't care about Java interoperability here.louiscad
10/09/2020, 5:24 PMDispatchers.Default { }
and blocking I/O with <http://Dispatchers.IO|Dispatchers.IO> { }
.Luis Munoz
10/09/2020, 7:36 PMCLOVIS
10/14/2020, 1:10 PMLuis Munoz
10/14/2020, 1:25 PMLuis Munoz
10/14/2020, 1:46 PMCLOVIS
10/14/2020, 5:45 PMsuspend
keyword allows me to get compile-time verification, even if the cost is small for a runtime-only verification, I'm still going to go with the better & more performant solution?louiscad
10/14/2020, 5:47 PM