frellan
02/09/2019, 4:25 PMlaunch
returned immediatly and ran whatever was inside on a new thread.
launch {
doStuff()
}
call.respond(Created)
bdawg.io
02/09/2019, 5:56 PMfrellan
02/09/2019, 6:19 PMDispatchers.Default
instead as suggested here https://medium.com/@elizarov/the-reason-to-avoid-globalscope-835337445abc it works!Albert
02/09/2019, 7:05 PMfrellan
02/09/2019, 9:14 PMbdawg.io
02/09/2019, 11:51 PM