◐ Shell
clean mode source ↗

std::shared_future::wait_until – cppreference.com

Aus cppreference.com

<metanoindex/>

<tbody> </tbody>

template< class Clock, class Duration > std::future_status wait_until( const std::chrono::time_point<Clock,Duration>& timeout_time );

Wartet, bis das Ergebnis zur Verfügung stehen. Blöcke bis angegebenen timeout_time erreicht wurde oder das Ergebnis zur Verfügung steht, was zuerst eintritt. Liefert den Wert kennzeichnet den Zustand des Ergebnisses. Darf nicht länger als bis zum timeout_time erreicht worden blockieren .

Original:

Waits for the result to become available. Blocks until specified timeout_time has been reached or the result becomes available, whichever comes first. Returns value identifies the state of the result. May block for longer than until timeout_time has been reached.

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

Parameter

timeout_time -

maximale Zeitpunkt, bis zu blockieren

Original:

maximum time point to block until

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

Rückgabewert

Constant Explanation
future_status::deferred The function to calculate the result has not been started yet
future_status::ready The result is ready
future_status::timeout The timeout has expired

Ausnahmen

(None)

Original:

(none)

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

Beispiel

Siehe auch

wartet darauf dass das Ergebnis verfügbar wird

Original:

waits for the result to become available

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.


(öffentliche Elementfunktion) [edit]
waits for the result, returns if it is not available for the specified timeout duration
(öffentliche Elementfunktion) [edit]