About 107,000 results
Open links in new tab
  1. std::async - cppreference.com

    Oct 28, 2024 · If policy is std:: launch:: async | std:: launch:: deferred or has additional bits set, it will fall back to deferred invocation or the implementation-defined policies in this case. Notes. …

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

    Mar 5, 2025 · 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 …

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

    Feb 24, 2025 · Once started, the operation state’s lifetime cannot end before the async operation is complete, and its address must be stable. Scheduler: A lightweight handle to an execution …

  4. std::future - cppreference.com

    Mar 12, 2024 · An asynchronous operation (created via std::async, std::packaged_task, or std::promise) can provide a std::future object to the creator of that asynchronous operation. …

  5. std::future<T>:: wait_until - Reference

    Aug 2, 2020 · If the future is the result of a call to async that used lazy evaluation, this function returns immediately without waiting. The behavior is undefined if valid() is false before the call …

  6. std::shared_future - cppreference.com

    Oct 23, 2023 · The class template std::shared_future provides a mechanism to access the result of asynchronous operations, similar to std::future, except that multiple threads are allowed to …

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

    Apr 29, 2025 · Cooperative cancellation (since C++20) The components stop source, stop token, and stop callback can be used to asynchronously request that an operation stops execution in …

  8. std::future<T>:: wait_for - Reference

    Aug 27, 2021 · If the future is the result of a call to std::async that used lazy evaluation, this function returns immediately without waiting. This function may block for longer than …

  9. std::launch - cppreference.com

    Mar 19, 2025 · std::launch is a BitmaskType.It specifies the launch policy for a task executed by the std::async function. [] Constant

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

    Feb 22, 2024 · The get member function waits (by calling wait()) until the shared state is ready, then retrieves the value stored in the shared state (if any).