Better syntax of asyncWhile