Asynchronous flow control for methods that return promises