קל לארגן דפים בעזרת אוספים
אפשר לשמור ולסווג תוכן על סמך ההעדפות שלך.
הפונקציה ממתינה עד שהפעולה הממושכת שצוינה מסתיימת או עד שהיא מגיעה לזמן קצוב לתפוגה, ומחזירה את המצב העדכני. אם הפעולה כבר בוצעה, המצב האחרון מוחזר באופן מיידי. אם זמן הקצאת הזמן שצוין גדול מזמן הקצאת הזמן שמוגדר כברירת מחדל ל-HTTP/RPC, המערכת תשתמש בזמן הקצאת הזמן של HTTP/RPC. אם השרת לא תומך בשיטה הזו, הוא מחזיר את הערך google.rpc.Code.UNIMPLEMENTED. חשוב לזכור שהשיטה הזו פועלת על בסיס האפשרות הטובה ביותר. יכול להיות שהיא תחזיר את המצב האחרון לפני זמן הקצוב לתפוגה (כולל באופן מיידי), כלומר גם תגובה מיידית לא מבטיחה שהפעולה הושלמה.
בקשת HTTP
POST https://earthengine.googleapis.com/v1beta/{name=projects/*/operations/**}:wait
משך הזמן המקסימלי להמתנה לפני סיום הזמן הקצוב לתפוגה. אם השדה הזה יישאר ריק, משך ההמתנה יהיה לכל היותר הזמן המותרת על ידי פרוטוקול HTTP/RPC הבסיסי. אם יצוין גם מועד יעד להקשר של ה-RPC, המערכת תשתמש במועד הקצר יותר.
משך הזמן בשניות, עם עד תשע ספרות עשרוניות, שמסתיימים ב-'s'. דוגמה: "3.5s".
גוף התשובה
אם הפעולה מצליחה, גוף התגובה מכיל מופע של Operation.
[[["התוכן קל להבנה","easyToUnderstand","thumb-up"],["התוכן עזר לי לפתור בעיה","solvedMyProblem","thumb-up"],["סיבה אחרת","otherUp","thumb-up"]],[["חסרים לי מידע או פרטים","missingTheInformationINeed","thumb-down"],["התוכן מורכב מדי או עם יותר מדי שלבים","tooComplicatedTooManySteps","thumb-down"],["התוכן לא עדכני","outOfDate","thumb-down"],["בעיה בתרגום","translationIssue","thumb-down"],["בעיה בדוגמאות/בקוד","samplesCodeIssue","thumb-down"],["סיבה אחרת","otherDown","thumb-down"]],["עדכון אחרון: 2025-03-06 (שעון UTC)."],[[["Waits for a specified operation to complete or until a timeout is reached, returning the operation's latest state."],["Uses HTTP/RPC timeout or the specified timeout, whichever is shorter, with a best-effort approach to provide the latest state."],["Accepts a timeout duration in the request body to customize the waiting period."],["Requires specific OAuth scopes for authorization, such as `https://www.googleapis.com/auth/earthengine` or `https://www.googleapis.com/auth/cloud-platform`."],["Returns the Operation details upon successful completion."]]],["This API method waits for a long-running operation to complete or reach a specified timeout, returning the latest operation state. It uses the HTTP/RPC timeout if the specified timeout is longer. The `name` parameter identifies the operation resource. The request body can include a `timeout` field, formatted as a duration string. The method is best-effort and may return before the timeout. It uses POST method with gRPC Transcoding, and a successful response is an `Operation` object, requiring specific OAuth scopes for authorization.\n"]]