Skip to content
UPEEC

std::async

Run a function asynchronously and get a `std::future` for the result.

Intermediate
Comments 0

auto f = std::async(std::launch::async, compute); auto r = f.get();

Spotted a mistake or want to add detail? Suggest an improvement — Content Contributors' edits are reviewed by editors before they go live.

Discussion (0)

Sign in or join free to ask questions and discuss this topic.