std::future::wait - cppreference.com
Da cppreference.com.
|
|
Questa pagina è stata tradotta in modo automatico dalla versione in ineglese della wiki usando Google Translate. La traduzione potrebbe contenere errori e termini strani. Muovi il puntatore sopra al testo per vedere la versione originale. Puoi aiutarci a correggere gli gli errori. Per ulteriori istruzioni clicca qui. |
<metanoindex/>
<tbody> </tbody>
|
|
||
Attende che il risultato diventi disponibile. Blocchi fino timeout_duration specificato è trascorso o il risultato sarà disponibile, quello che viene prima. Valore ritorna identifica lo stato del risultato. Può bloccare per più di 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.
Parametri
| timeout_duration | - | durata massima di bloccare per Original: maximum duration to block for The text has been machine-translated via Google Translate. |
Valore di ritorno
| 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 |
Eccezioni
(Nessuno)
Original:
(none)
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Esempio
Vedi anche
attende il risultato diventi disponibile Original: waits for the result to become available The text has been machine-translated via Google Translate. (metodo pubblico) [modifica] | |
aspetta il risultato, restituisce se non è disponibile fino punto di tempo specificato è stato raggiunto 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. (metodo pubblico) [modifica] | |