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 و/یا شرکتهای وابسته به آن است.
تاریخ آخرین بهروزرسانی 2025-07-24 بهوقت ساعت هماهنگ جهانی.
[null,null,["تاریخ آخرین بهروزرسانی 2025-07-24 بهوقت ساعت هماهنگ جهانی."],[[["\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. |"]]