Open links in new tab
  1. std::async - cppreference.com

    The function template std::async runs the function f asynchronously (potentially in a separate thread which might be a part of a thread pool) and returns a std::future that will eventually hold the result of …

  2. std::future - cppreference.com

    An asynchronous operation (performed via std::async, std::packaged_task, or std::promise) can provide a std::future object to the creator of that asynchronous operation. The creator of the asynchronous …

  3. Coroutines (C++20) - cppreference.com

    A coroutine is a function that can suspend execution to be resumed later. Coroutines are stackless: they suspend execution by returning to the caller, and the data that is required to resume execution is …

  4. std::future<T>::wait_for - cppreference.com

    Waits for the result to become available. Blocks until specified timeout_duration has elapsed or the result becomes available, whichever comes first. The return value identifies the state of the result. If …

  5. Execution control library (since C++26) - cppreference.com

    The Execution control library provides a framework for managing asynchronous execution on generic execution resources. The library aims to provide vocabulary types for asynchronous operations and …

  6. std::launch - cppreference.com

    std::launch is a BitmaskType. It specifies the launch policy for a task executed by the std::async function. Constants The following constants denoting individual bits are defined by the standard library:

  7. Concurrency support library (since C++11) - cppreference.com

    Futures The standard library provides facilities to obtain values that are returned and to catch exceptions that are thrown by asynchronous tasks (i.e. functions launched in separate threads). These values …

  8. std::promise - cppreference.com

    The class template std::promise provides a facility to store a value or an exception that is later acquired asynchronously via a std::future object created by the std::promise object. Note that the std::promise …

  9. Extensions for networking - cppreference.com

    The C++ Extensions for Networking, ISO/IEC TS 19216:2018, defines new components for the C++ standard library listed on this page. The Networking TS is based on the C++14 standard as modified …

  10. std::future<T>::wait - cppreference.com

    Blocks until the result becomes available. valid() == true after the call. The behavior is undefined if valid () == false before the call to this function.