Implementation of an async block with a macro.