Make Nstack.appOpen cancellable or add a timeout parameter to set the maximum duration appOpen() can run for.
Because appOpen is not currently cancellable, code like the following will not timeout, if appOpen() will take more than 2000ms:
withTimeoutOrNull(2000) { NStack.appOpen() }
In this case the Coroutine will not return in 2 seconds.
Make
Nstack.appOpencancellable or add a timeout parameter to set the maximum durationappOpen()can run for.Because
appOpenis not currently cancellable, code like the following will not timeout, ifappOpen()will take more than 2000ms:In this case the Coroutine will not return in 2 seconds.