{"id":18578444,"url":"https://github.com/auroratide/wait","last_synced_at":"2025-05-16T02:11:00.867Z","repository":{"id":44128694,"uuid":"192375918","full_name":"Auroratide/wait","owner":"Auroratide","description":null,"archived":false,"fork":false,"pushed_at":"2023-01-04T00:44:59.000Z","size":542,"stargazers_count":0,"open_issues_count":11,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-17T15:37:59.817Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"isc","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Auroratide.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2019-06-17T15:48:47.000Z","updated_at":"2019-06-21T15:28:16.000Z","dependencies_parsed_at":"2023-02-01T15:32:13.977Z","dependency_job_id":null,"html_url":"https://github.com/Auroratide/wait","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Auroratide%2Fwait","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Auroratide%2Fwait/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Auroratide%2Fwait/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Auroratide%2Fwait/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Auroratide","download_url":"https://codeload.github.com/Auroratide/wait/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254453667,"owners_count":22073618,"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":[],"created_at":"2024-11-06T23:35:28.505Z","updated_at":"2025-05-16T02:11:00.851Z","avatar_url":"https://github.com/Auroratide.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# wait\n\n**wait** is a tiny utility for forcing your code to be patient. That is, it lets you wait an arbitrary amount of time in an expressive way.\n\n\u003e **NOTE**: This project is still in pre-release (before v1.0.0). This means API changes may happen between minor versions, so check the Changelog when updating. API will be considered stable at v1.0.0.\n\n```js\nimport wait from '@auroratide/wait';\n\nconst operation = async () =\u003e {\n  // do something\n  await wait.milliseconds(100);\n  // do more things\n};\n```\n\n## How to use\n\nTo see how to use this library, check out the `examples` folder for sample usages!\n\n_But Timothy... why not put the usages in the README?_\n\nGlad you asked! The goal is to use tests as documentation by shifting our paradigm into thinking of tests more as **example usages**. In doing so, we can achieve the following:\n\n* All documented usages are _guaranteed_ to work, because they are also tests that must pass before publishing\n* Well-written, expressive tests that provide full confidence the code works as it was intended to be used\n* Less written documentation in the README which can be prone to becoming out-of-date\n\nIf you like how that sounds, give it a try! Start thinking of your tests as **examples**, and see if it changes the way you approach testing in general.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fauroratide%2Fwait","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fauroratide%2Fwait","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fauroratide%2Fwait/lists"}