elizarov
09/11/2017, 3:17 PMasync(ctx) { ... }.await()
is the same as run(ctx) { ... }
. I’d recommend to always use the later, since it makes your intent to switch to another context more explicit and I don’t have to look at the last line with await
to see what was your intent of using async
.