{"id":16125679,"url":"https://github.com/dy/wait-please","last_synced_at":"2025-07-03T13:06:01.157Z","repository":{"id":35699610,"uuid":"219002211","full_name":"dy/wait-please","owner":"dy","description":"Await interval constructors","archived":false,"fork":false,"pushed_at":"2023-01-05T03:17:34.000Z","size":173,"stargazers_count":8,"open_issues_count":8,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-25T09:41:44.146Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dy.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-11-01T14:35:25.000Z","updated_at":"2025-04-24T17:38:49.000Z","dependencies_parsed_at":"2023-01-16T03:30:22.376Z","dependency_job_id":null,"html_url":"https://github.com/dy/wait-please","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/dy/wait-please","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dy%2Fwait-please","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dy%2Fwait-please/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dy%2Fwait-please/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dy%2Fwait-please/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dy","download_url":"https://codeload.github.com/dy/wait-please/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dy%2Fwait-please/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262233366,"owners_count":23279361,"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-10-09T21:30:37.771Z","updated_at":"2025-07-03T13:06:01.127Z","avatar_url":"https://github.com/dy.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# wait-please [![Build Status](https://travis-ci.org/dy/wait-please.svg?branch=master)](https://travis-ci.org/dy/wait-please) [![unstable](https://img.shields.io/badge/stability-unstable-yellow.svg)](http://github.com/badges/stability-badges)\n\nCreate a promise, waiting for the indicated interval. Useful for organizing tests.\n\n[![NPM](https://nodei.co/npm/wait-please.png?mini=true)](https://nodei.co/npm/wait-please/)\n\n```js\nimport { tick, frame, time, idle } from 'wait-please'\n\n// 3 microtask ticks (queueMicrotask, Promise.resolve ~ same as process.nextTick)\nawait tick(3)\n\n// 3 animation frames (requestAnimationFrame)\nawait frame(3)\n\n// 150 ms (setTimeout)\nawait time(150)\n\n// 1 macrotask in task queue (idle, setImmediate)\nawait idle()\n```\n\n## Similar / refs\n\n* [queue-microtask](https://github.com/feross/queue-microtask)\n* [tic-tac](https://www.npmjs.com/package/tic-tac)\n\n\u003cp align=\"right\"\u003eHK\u003c/p\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdy%2Fwait-please","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdy%2Fwait-please","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdy%2Fwait-please/lists"}