Sam Schilling
01/21/2020, 9:56 PMGlobalScope.launch
for example throws an exception:
IllegalStateException: There is no event loop. Use runBlocking { ... } to start one.
The problem is if I surround my launch with runBlocking
, I am no longer performing an async task as it will block the calling thread until the launched coroutine completes.basher
01/21/2020, 10:06 PMSam Schilling
01/21/2020, 10:08 PMbasher
01/21/2020, 10:08 PMSam Schilling
01/21/2020, 10:09 PMbasher
01/21/2020, 10:09 PMSam Schilling
01/21/2020, 10:09 PMSam Schilling
01/21/2020, 10:09 PMSam Schilling
01/21/2020, 10:10 PM1.3.3-native-mt