Attendre les opérations étendues
bookmark_borderbookmark
Restez organisé à l'aide des collections
Enregistrez et classez les contenus selon vos préférences.
Cet exemple montre comment attendre la fin d'une opération étendue (de longue durée).
Exemple de code
Sauf indication contraire, le contenu de cette page est régi par une licence Creative Commons Attribution 4.0, et les échantillons de code sont régis par une licence Apache 2.0. Pour en savoir plus, consultez les Règles du site Google Developers. Java est une marque déposée d'Oracle et/ou de ses sociétés affiliées.
[[["Facile à comprendre","easyToUnderstand","thumb-up"],["J'ai pu résoudre mon problème","solvedMyProblem","thumb-up"],["Autre","otherUp","thumb-up"]],[["Difficile à comprendre","hardToUnderstand","thumb-down"],["Informations ou exemple de code incorrects","incorrectInformationOrSampleCode","thumb-down"],["Il n'y a pas l'information/les exemples dont j'ai besoin","missingTheInformationSamplesINeed","thumb-down"],["Problème de traduction","translationIssue","thumb-down"],["Autre","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."]]],[]]