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

    2024年3月12日 · The class template std::future provides a mechanism to access the result of asynchronous operations: An asynchronous operation (created via std::async, …

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

    2024年2月22日 · 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). Right after calling this function, valid …

  3. std::future<T>::valid - cppreference.com

    2021年8月27日 · Checks if the future refers to a shared state. This is the case only for futures that were not default-constructed or moved from (i.e. returned by std::promise::get_future (), …

  4. std::shared_future - cppreference.com

    2023年10月23日 · Unlike std::future, which is only moveable (so only one instance can refer to any particular asynchronous result), std::shared_future is copyable and multiple shared future …

  5. Pandas replace and downcasting deprecation since version 2.2.0

    2024年11月26日 · To opt-in to the future behavior, set `pd.set_option('future.no_silent_downcasting', True)` 0 1 1 0 2 2 3 1 dtype: int64 If I …

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

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

  7. c++ - std::future in simple words? - Stack Overflow

    2021年12月28日 · In summary: std::future is an object used in multithreaded programming to receive data or an exception from a different thread; it is one end of a single-use, one-way …

  8. How can one await a result of a boxed future? - Stack Overflow

    2020年3月6日 · where F: Unpin + Future + ?Sized, Boxed futures only implement the Future trait when the future inside the Box implements Unpin. Since your function doesn't guarantee that …

  9. c++ - Futures vs. Promises - Stack Overflow

    2012年9月27日 · I'm confusing myself with difference between a std::future and a std::promise. Obviously, they have different methods and stuff, but what is the actual use case? Is it?: When …

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

    2020年8月2日 · wait_until waits for a result to become available. It blocks until specified timeout_time has been reached or the result becomes available, whichever comes first. The …