{"id":16384719,"url":"https://github.com/saber2pr/schedular","last_synced_at":"2025-02-22T02:44:03.411Z","repository":{"id":108571519,"uuid":"185123701","full_name":"Saber2pr/schedular","owner":"Saber2pr","description":"\u003e 基于 requestIdleCallback 的优先级调度","archived":false,"fork":false,"pushed_at":"2019-06-13T07:28:34.000Z","size":13,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-15T04:05:39.543Z","etag":null,"topics":["requestidlecallback","schedular"],"latest_commit_sha":null,"homepage":null,"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/Saber2pr.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,"governance":null}},"created_at":"2019-05-06T04:29:13.000Z","updated_at":"2019-06-13T07:28:36.000Z","dependencies_parsed_at":"2023-07-18T16:21:36.590Z","dependency_job_id":null,"html_url":"https://github.com/Saber2pr/schedular","commit_stats":null,"previous_names":["saber2pr/-saber2pr-schedular"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Saber2pr%2Fschedular","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Saber2pr%2Fschedular/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Saber2pr%2Fschedular/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Saber2pr%2Fschedular/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Saber2pr","download_url":"https://codeload.github.com/Saber2pr/schedular/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240118329,"owners_count":19750471,"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":["requestidlecallback","schedular"],"created_at":"2024-10-11T04:12:11.434Z","updated_at":"2025-02-22T02:44:03.392Z","avatar_url":"https://github.com/Saber2pr.png","language":"TypeScript","readme":"# @saber2pr/schedular\n\n[![npm](https://img.shields.io/npm/v/@saber2pr/schedular.svg?color=blue)](https://www.npmjs.com/package/@saber2pr/schedular)\n\n\u003e 基于 requestIdleCallback 的优先级调度\n\n```bash\n# from npm\nnpm install @saber2pr/schedular\n\n# from github\ngit clone https://github.com/Saber2pr/-saber2pr-schedular.git\n```\n\n## API\n\n```ts\nimport VM from '@saber2pr/schedular'\n\nnew VM()\n  .push({\n    expirationTime: 40,\n    idleCallback: () =\u003e console.log('low priority')\n  })\n  .push({\n    expirationTime: 25,\n    idleCallback: () =\u003e console.log('common priority')\n  })\n  .push(() =\u003e console.log('high priority')) // expirationTime: 0\n```\n\n---\n\n## start\n\n```bash\nnpm install\n```\n\n```bash\nnpm start\n\nnpm run dev\n\n```\n\n\u003e Author: saber2pr\n\n---\n\n## develope and test\n\n\u003e you should write ts in /src\n\n\u003e you should make test in /src/test\n\n\u003e export your core in /src/index.ts!\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsaber2pr%2Fschedular","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsaber2pr%2Fschedular","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsaber2pr%2Fschedular/lists"}