{"id":15451966,"url":"https://github.com/hazae41/future","last_synced_at":"2025-04-19T23:55:13.630Z","repository":{"id":97772651,"uuid":"608669442","full_name":"hazae41/future","owner":"hazae41","description":"Just like a Promise but you can manually resolve or reject it","archived":false,"fork":false,"pushed_at":"2025-03-30T06:10:35.000Z","size":149,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-19T23:55:08.205Z","etag":null,"topics":["async","await","browser","finally","future","javascript","promise","typescript","unit-test"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/hazae41.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":["hazae41"],"patreon":"hazae41"}},"created_at":"2023-03-02T13:57:08.000Z","updated_at":"2025-03-30T06:10:25.000Z","dependencies_parsed_at":"2023-03-11T19:45:51.113Z","dependency_job_id":null,"html_url":"https://github.com/hazae41/future","commit_stats":{"total_commits":15,"total_committers":1,"mean_commits":15.0,"dds":0.0,"last_synced_commit":"8919c60360b0cc292ad8cb36727ad832b4aa3cf3"},"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hazae41%2Ffuture","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hazae41%2Ffuture/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hazae41%2Ffuture/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hazae41%2Ffuture/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hazae41","download_url":"https://codeload.github.com/hazae41/future/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249830852,"owners_count":21331357,"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","browser","finally","future","javascript","promise","typescript","unit-test"],"created_at":"2024-10-01T21:40:37.671Z","updated_at":"2025-04-19T23:55:13.614Z","avatar_url":"https://github.com/hazae41.png","language":"TypeScript","funding_links":["https://github.com/sponsors/hazae41","https://patreon.com/hazae41"],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n\u003cimg src=\"https://user-images.githubusercontent.com/4405263/222497326-825b2ebb-910b-41ca-8759-785c4876faf0.png\" /\u003e\n\u003c/div\u003e\n\nJust like a Promise but you can manually resolve or reject it\n\n```bash\nnpm i @hazae41/future\n```\n\n[**Node Package 📦**](https://www.npmjs.com/package/@hazae41/future)\n\n## Features\n\n### Current features\n- 100% TypeScript and ESM\n- No external dependencies\n- Unit-tested\n\n## Usage\n\n```typescript\nimport { Future } from \"@hazae41/future\"\n\nconst future = new Future\u003cvoid\u003e()\n\nconst t1 = setTimeout(() =\u003e future.resolve(), 1000)\nconst t2 = setTimeout(() =\u003e future.reject(), 2000)\n\ntry {\n  await future.promise\n} finally {\n  clearTimeout(t1)\n  clearTimeout(t2)\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhazae41%2Ffuture","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhazae41%2Ffuture","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhazae41%2Ffuture/lists"}