--- title: "Wait" slug: "wait" updated: 2024-05-02T14:55:08Z published: 2024-05-02T14:55:08Z canonical: "docs.datajet.app/wait" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.datajet.app/llms.txt > Use this file to discover all available pages before exploring further. # Wait Wait until time-limit has been reached or condition has been met | Key | Value(s) | Description | | --- | --- | --- | | method | "Wait" | Wait until time-limit has been reached or condition has been met | | millis | 5000 | Optional. Number of milli-seconds to wait | | type | "exists" "notexists" | Optional. exists - wait until specified object exists notexists - wait until specified object doesn't exist | | search{} | { "name": "ObjectName" "class": "ObjectClass" } | Optional. name - object name (case sensitive) class - object class. Supported classes: - BTable (table object) | | errorOnTimeout | true/false | Added in v6.5.2.1 | Examples ```json //table is deleted in the timeout windows [ { "method": "Wait", "project": "eyeota", "type": "exists", "search": { "class": "BTable", "name": "dddd" }, "timeout": 5000, "errorOnTimeout": true }, { "timedout": false } ] ``` ```json //with error in timeout [ { "method": "Wait", "project": "eyeota", "type": "exists", "search": { "class": "BTable", "name": "dddd" }, "timeout": 5000, "errorOnTimeout": true }, { "timedout": true, "errors": [ "timeout on Wait" ] } ] ``` ```json //wait for a table to be deleted [ { "method": "Wait", "project": "eyeota", "type": "exists", "search": { "class": "BTable", "name": "dddd" }, "timeout": 5000 }, { "timedout": true, } ] ``` ```json { "method": "Wait" "millis":5000 } ``` ```json { "method": "Wait", "type": "exists", "search": { "name": "Product", "class": "BTable" } ``` ```json { "method": "Wait", "type": "notexists", "search": { "name": "Product", "class": "BTable" } } ```