{"id":20852892,"url":"https://github.com/okturtles/okturtles.eventqueue","last_synced_at":"2025-07-18T22:34:28.021Z","repository":{"id":40551710,"uuid":"455036442","full_name":"okTurtles/okTurtles.eventQueue","owner":"okTurtles","description":"Synchronize asynchronous SBP invocations","archived":false,"fork":false,"pushed_at":"2025-03-10T20:41:47.000Z","size":170,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-07-14T02:44:47.995Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/okTurtles.png","metadata":{"files":{"readme":"README.md","changelog":"HISTORY.md","contributing":null,"funding":null,"license":"LICENSE.txt","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,"zenodo":null}},"created_at":"2022-02-03T05:04:05.000Z","updated_at":"2025-03-10T20:41:51.000Z","dependencies_parsed_at":"2025-04-15T23:47:46.492Z","dependency_job_id":"4c7e9c26-2828-4574-bdbe-96306e053a9a","html_url":"https://github.com/okTurtles/okTurtles.eventQueue","commit_stats":null,"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"purl":"pkg:github/okTurtles/okTurtles.eventQueue","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/okTurtles%2FokTurtles.eventQueue","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/okTurtles%2FokTurtles.eventQueue/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/okTurtles%2FokTurtles.eventQueue/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/okTurtles%2FokTurtles.eventQueue/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/okTurtles","download_url":"https://codeload.github.com/okTurtles/okTurtles.eventQueue/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/okTurtles%2FokTurtles.eventQueue/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265846886,"owners_count":23838160,"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-18T03:19:12.581Z","updated_at":"2025-07-18T22:34:27.999Z","avatar_url":"https://github.com/okTurtles.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# `okTurtles.eventQueue`\n\nA serial event queue for asynchronous [SBP](https://github.com/okTurtles/sbp-js) invocations.\n\nUse this to ensure asynchronous SBP invocations get invoked serially, one after another, waiting for the previous invocation to finish completely.\n\nInstall:\n\n```\n$ npm install --save @sbp/okturtles.eventqueue\n```\n\nUsage:\n\n```js\nimport sbp from '@sbp/sbp'\nimport '@sbp/okturtles.eventQueue'\n\nasync function syncronousHandleEvent (event) {\n  // here the SBP invocation to 'state/vuex/dispatch' will be\n  // passed to an event queue designated by 'queue1'\n  const result = await sbp('okTurtles.eventQueue/queueEvent', 'queue1', [\n    'state/vuex/dispatch', 'handleEvent', event\n  ])\n  return result\n}\n```\n\nRegisters the following selectors:\n\n- `'okTurtles.eventQueue/queueEvent'`\n- `'okTurtles.eventQueue/isWaiting'`\n- `'okTurtles.eventQueue/queuedInvocations'`\n\n## History\n\nSee [HISTORY.md](HISTORY.md).\n\n## License\n\n[MIT](LICENSE.txt).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fokturtles%2Fokturtles.eventqueue","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fokturtles%2Fokturtles.eventqueue","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fokturtles%2Fokturtles.eventqueue/lists"}