Un-nesting asynchronous control flow