You would be breaking structured concureency - ie yout launch coroutine would no longer be a child of scope from test function
n
nicholasnet
04/06/2021, 1:06 PM
Yeah but here since this launch happens at last I think it will be fine I just don’t want to wait launch to complete and return Result I want to return Result immediately and keep launch doing it’s work in background. Are there other ways to achieve this.
d
Dariusz Kuc
04/06/2021, 1:50 PM
If you dont care about that scope you could just use GlobalScope, if you do care about it and need to track it - I'd store it in a class field so you could always cancel children if needed