suspend
Run one command after another, even if I suspend the first one (Ctrl-z)
The following should do it: (command1; command2) Note the added parentheses.
What does the suspend function mean in a Kotlin Coroutine?
Suspending functions are at the center of everything coroutines. A suspending function is simply a function that can be paused and resumed at a later time. They can execute a long running operation and wait for it to complete without blocking. The syntax of a suspending function is similar to that of a regular function … Read more