拡張オペレーションの完了を待機する
bookmark_borderbookmark
コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
このサンプルは、長時間(長時間実行)オペレーションが完了するまで待機する方法を示しています。
コードサンプル
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
[[["わかりやすい","easyToUnderstand","thumb-up"],["問題の解決に役立った","solvedMyProblem","thumb-up"],["その他","otherUp","thumb-up"]],[["わかりにくい","hardToUnderstand","thumb-down"],["情報またはサンプルコードが不正確","incorrectInformationOrSampleCode","thumb-down"],["必要な情報 / サンプルがない","missingTheInformationSamplesINeed","thumb-down"],["翻訳に関する問題","translationIssue","thumb-down"],["その他","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."]]],[]]