{"id":16178517,"url":"https://github.com/seeden/fast-wait","last_synced_at":"2025-03-19T01:30:49.293Z","repository":{"id":57233117,"uuid":"126979367","full_name":"seeden/fast-wait","owner":"seeden","description":"Delay a promise a specified amount of time. Always fast as possible.","archived":false,"fork":false,"pushed_at":"2018-03-27T14:19:56.000Z","size":14,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-17T01:35:10.557Z","etag":null,"topics":["async","await","javascript","settimeout"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/seeden.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-03-27T11:56:52.000Z","updated_at":"2018-03-27T21:00:07.000Z","dependencies_parsed_at":"2022-08-31T14:11:16.196Z","dependency_job_id":null,"html_url":"https://github.com/seeden/fast-wait","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seeden%2Ffast-wait","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seeden%2Ffast-wait/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seeden%2Ffast-wait/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seeden%2Ffast-wait/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/seeden","download_url":"https://codeload.github.com/seeden/fast-wait/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244336116,"owners_count":20436770,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["async","await","javascript","settimeout"],"created_at":"2024-10-10T05:13:55.577Z","updated_at":"2025-03-19T01:30:49.017Z","avatar_url":"https://github.com/seeden.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# fast-wait\n\nDelay a promise a specified amount of time. Always fast as possible.\nFor empty delay it will try to resolve fast as possible. For delay \u003e 0 it will use standard setTimeout\n\n[![NPM version][npm-image]][npm-url]\n\n[npm-image]: https://img.shields.io/npm/v/fast-wait.svg?style=flat-square\n[npm-url]: https://www.npmjs.com/fast-wait\n[travis-image]: https://img.shields.io/travis/seeden/fast-wait/master.svg?style=flat-square\n[travis-url]: https://travis-ci.org/seeden/fast-wait\n[coveralls-image]: https://img.shields.io/coveralls/seeden/fast-wait/master.svg?style=flat-square\n[coveralls-url]: https://coveralls.io/r/seeden/fast-wait?branch=master\n[github-url]: https://github.com/seeden/fast-wait\n\n## Usage\n\n```js\nimport wait from 'fast-wait';\n\nasync function test() {\n  await wait(); // it will use Promise#then\n\n  await wait(200); // it will use setTimeout\n}\n\ntest();\n```\n\n## Performance\n\n```sh\nfast-wait x 10000 = 52ms\nsetTimeout x 10000 = 12957ms\n```\n\n# Support us\n\nStar this project on [GitHub][github-url].\n\n## Credits\n\n[Zlatko Fedor](http://github.com/seeden)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fseeden%2Ffast-wait","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fseeden%2Ffast-wait","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fseeden%2Ffast-wait/lists"}