Can you give me an example particular to this use case ? @elizarov
e
elizarov
10/19/2018, 6:20 AM
Use it instead of
GlobalScope.launch
o
otakusenpai
10/19/2018, 6:20 AM
ok
d
dave08
10/19/2018, 6:26 AM
And I don't think you need
coroutineScope
here either, if you are using suspend functions and not launching in them. You'll just need to be in a coroutine wherever this logger is used... also consider not opening and closing the file at every write...