Create async work
#std::async with launch::async runs a callable asynchronously and returns a future. A C++ coroutine is a different mechanism: C++23 supplies coroutine machinery, but no general executor or standard co_await support for std::future.
Fragment
C++20/23. Code fragments assume an enclosing function, named application values and the indicated standard headers.
Include <future>. With no explicit launch policy, execution may be deferred. A future associated with std::async can wait during destruction.