Attendi le operazioni estese
bookmark_borderbookmark
Mantieni tutto organizzato con le raccolte
Salva e classifica i contenuti in base alle tue preferenze.
Questo esempio mostra come attendere il completamento di un'operazione estesa (a lunga esecuzione).
Esempio di codice
Salvo quando diversamente specificato, i contenuti di questa pagina sono concessi in base alla licenza Creative Commons Attribution 4.0, mentre gli esempi di codice sono concessi in base alla licenza Apache 2.0. Per ulteriori dettagli, consulta le norme del sito di Google Developers. Java è un marchio registrato di Oracle e/o delle sue consociate.
[[["Facile da capire","easyToUnderstand","thumb-up"],["Il problema è stato risolto","solvedMyProblem","thumb-up"],["Altra","otherUp","thumb-up"]],[["Difficile da capire","hardToUnderstand","thumb-down"],["Informazioni o codice di esempio errati","incorrectInformationOrSampleCode","thumb-down"],["Mancano le informazioni o gli esempi di cui ho bisogno","missingTheInformationSamplesINeed","thumb-down"],["Problema di traduzione","translationIssue","thumb-down"],["Altra","otherDown","thumb-down"]],[],[[["This sample demonstrates how to wait for a long-running operation to complete using the `wait_for_extended_operation` function."],["The provided code includes a function, `wait_for_extended_operation`, that handles waiting for an operation, reporting errors or warnings, and returning the operation's result."],["The function accepts an `ExtendedOperation` object, a verbose name for the operation, and a timeout duration as arguments."],["The sample requires setting up Application Default Credentials for authentication and also references Compute Engine quickstart and API documentation for further setup and information."],["The documentation also references a sample browser to search for other Google Cloud product code samples."]]],[]]