约 117,000 个结果
在新选项卡中打开链接
  1. std:: async - cppreference.com

    2024年10月28日 · 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 …

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

    2025年3月5日 · 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. std::future - cppreference.com

    2024年3月12日 · 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. …

  4. std::launch - cppreference.com

    2025年3月19日 · 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 …

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

    2021年8月27日 · 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 …

  6. std::promise - cppreference.com

    2023年10月23日 · 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 …

  7. std::this_thread::sleep_for - cppreference.com

    2023年10月23日 · Blocks the execution of the current thread for at least the specified sleep_duration. This function may block for longer than sleep_duration due to scheduling or …

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

    2025年2月24日 · The library aims to provide vocabulary types for asynchronous operations and to allow the construction of task execution graphs in a simple, composable way.

  9. std::packaged_task - cppreference.com

    2025年2月10日 · The class template std::packaged_task wraps any Callable target (function, lambda expression, bind expression, or another function object) so that it can be invoked …

  10. Extensions for networking - cppreference.com

    2023年9月11日 · The C++ Extensions for Networking, ISO/IEC TS 19216:2018, defines new components for the C++ standard library listed on this page.