معرفی شرکت ها


yoctodelay-2.0.0


Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر

توضیحات

Delay a promise a specified amount of time
ویژگی مقدار
سیستم عامل -
نام فایل yoctodelay-2.0.0
نام yoctodelay
نسخه کتابخانه 2.0.0
نگهدارنده ['sindresorhus']
ایمیل نگهدارنده ['sindresorhus@gmail.com']
نویسنده Sindre Sorhus
ایمیل نویسنده sindresorhus@gmail.com
آدرس صفحه اصلی git+https://github.com/sindresorhus/yoctodelay.git
آدرس اینترنتی https://github.com/sindresorhus/yoctodelay#readme
مجوز MIT
# yoctodelay > Delay a promise a specified amount of time It's less than half the size of the [`nanodelay`](https://github.com/ai/nanodelay) module. **Note:** If you target Node.js 16 or later, you can use the built-in functionality instead: ```js import {setTimeout as delay} from 'node:timers/promises'; await delay(100); ``` ## Install ``` $ npm install yoctodelay ``` ## Usage ```js import delay from 'yoctodelay'; foo(); await delay(100); // Executed 100 milliseconds later bar(); ``` ## API ### delay(milliseconds) Delay the promise and then resolve. #### milliseconds Type: `number` The duration to delay the promise. ## FAQ ### What is yocto? [It's the smallest official unit prefix in the metric system.](https://en.wikipedia.org/wiki/Yocto-) Much smaller than nano. ### Is this a joke? Partly. The `nanodelay` module was created only because the `delay` module is a tiny bit larger. Well, this module is a tiny bit smaller than the `nanodelay` module. Comparing size at the byte level is super silly. It doesn't matter unless the difference is more than many kilobytes. This is still a fully working module though. Go ahead and use it. ## Related - [delay](https://github.com/sindresorhus/delay) - Similar to this module but with more features - [More…](https://github.com/sindresorhus/promise-fun)


زبان مورد نیاز

مقدار نام
12.22.1 Npm


نحوه نصب


نصب پکیج tgz yoctodelay-2.0.0:

    npm install yoctodelay-2.0.0.tgz