逾時後執行
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
範例:示範在 GCF 呼叫逾時後應執行 (但不會執行) 的程式碼。
程式碼範例
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 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 page demonstrates code samples in Go, Java, Node.js, and Python that are designed to execute for two minutes, showcasing how Cloud Functions might time out before completion."],["The provided code examples highlight the potential for a function's execution to be interrupted by a timeout if the set duration is less than two minutes, as each sample includes a two-minute delay."],["The samples use `time.Sleep` in Go, `TimeUnit.MINUTES.sleep` in Java, `setTimeout` in Node.js, and `time.sleep` in Python, to simulate a long-running process that could be cut short by a timeout."],["Authentication for Cloud Run functions is achieved through setting up Application Default Credentials, with a link provided for further instructions on local development environment authentication."],["The content directs users to the Google Cloud sample browser for further exploration of code samples across various Google Cloud products."]]],[]]