ui.util.setTimeout
संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
यह फ़ंक्शन, तय समय के बाद किसी फ़ंक्शन को कॉल करता है.
यह एक ऐसी कुंजी दिखाता है जिसे टाइम आउट हटाने के लिए, ui.util.clearTimeout को पास किया जा सकता है.
इस्तेमाल | रिटर्न |
---|
ui.util.setTimeout(func, delay) | नंबर |
आर्ग्यूमेंट | टाइप | विवरण |
---|
func | फ़ंक्शन | यह फ़ंक्शन, तय किए गए इंटरवल पर चलता है. |
delay | नंबर | यह समय मिलीसेकंड (सेकंड का हज़ारवां हिस्सा) में होता है. यह वह समय होता है जब टाइमर को तय किए गए फ़ंक्शन को लागू करने से पहले इंतज़ार करना चाहिए. |
जब तक कुछ अलग से न बताया जाए, तब तक इस पेज की सामग्री को Creative Commons Attribution 4.0 License के तहत और कोड के नमूनों को Apache 2.0 License के तहत लाइसेंस मिला है. ज़्यादा जानकारी के लिए, Google Developers साइट नीतियां देखें. Oracle और/या इससे जुड़ी हुई कंपनियों का, Java एक रजिस्टर किया हुआ ट्रेडमार्क है.
आखिरी बार 2025-07-26 (UTC) को अपडेट किया गया.
[null,null,["आखिरी बार 2025-07-26 (UTC) को अपडेट किया गया."],[[["\u003cp\u003e\u003ccode\u003eui.util.setTimeout\u003c/code\u003e executes a provided function after a specified delay.\u003c/p\u003e\n"],["\u003cp\u003eIt returns a unique key that can be used with \u003ccode\u003eui.util.clearTimeout\u003c/code\u003e to cancel the scheduled execution.\u003c/p\u003e\n"],["\u003cp\u003eThe delay is defined in milliseconds, controlling the time before the function is triggered.\u003c/p\u003e\n"]]],[],null,["# ui.util.setTimeout\n\n\u003cbr /\u003e\n\nCalls a function after a fixed time delay.\n\n\u003cbr /\u003e\n\nReturns a key that can be passed to ui.util.clearTimeout to remove the timeout.\n\n| Usage | Returns |\n|-----------------------------------|---------|\n| `ui.util.setTimeout(func, delay)` | Number |\n\n| Argument | Type | Details |\n|----------|----------|-------------------------------------------------------------------------------------------------------------------------|\n| `func` | Function | The function to run at the specified interval. |\n| `delay` | Number | The time, in milliseconds (thousandths of a second), the timer should delay before execution of the specified function. |"]]