std::shared_future::wait
De cppreference.com
[] |
This page has been machine-translated from the English version of the wiki using Google Translate.
The translation may contain errors and awkward wording. Hover over text to see the original version. You can help to fix errors and improve the translation. For instructions click here. |
<metanoindex/>
<tbody> </tbody> template< class Rep, class Period > std::future_status wait_for( const std::chrono::duration<Rep,Period>& timeout_duration ); |
||
Attend le rsultat soit disponible. Bloque jusqu'
timeout_duration spcifi s'est coul ou le rsultat devient disponible, selon la premire ventualit. Retourne la valeur identifie l'tat du rsultat. Peut bloquer pendant plus de timeout_duration .Original:
Waits for the result to become available. Blocks until specified
timeout_duration has elapsed or the result becomes available, whichever comes first. Returns value identifies the state of the result. May block for longer than timeout_duration.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
Paramtres
| timeout_duration | - | dure maximale de bloquer pour
Original: maximum duration to block for The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
Retourne la valeur
| 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 |
Exceptions
(Aucun)
Original:
(none)
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
Exemple
| This section is incomplete Reason: no example |
Voir aussi
attend que le rsultat soit disponible 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. (fonction membre publique) | |
attend le rsultat, retourne si il ne sera pas disponible avant que le point dans le temps spcifi soit atteint Original: waits for the result, returns if it is not available until specified time point 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. (fonction membre publique) | |