{"id":15504387,"url":"https://github.com/exelord/solid-tasks","last_synced_at":"2025-04-23T17:08:53.290Z","repository":{"id":65545257,"uuid":"555779956","full_name":"Exelord/solid-tasks","owner":"Exelord","description":"Manage and control concurrent and async operations in Solid.js apps. Forget about manual cancellation, concurrency side-effects and make your app user proof.","archived":false,"fork":false,"pushed_at":"2023-11-05T11:44:21.000Z","size":922,"stargazers_count":26,"open_issues_count":5,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-23T17:08:28.624Z","etag":null,"topics":["actions","concurrency","jobs","soildjs","tasks"],"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/Exelord.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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}},"created_at":"2022-10-22T10:05:22.000Z","updated_at":"2024-11-30T15:04:08.000Z","dependencies_parsed_at":"2023-02-15T16:45:21.593Z","dependency_job_id":"eb0a075e-6e80-4b95-ac97-fc389f47cac5","html_url":"https://github.com/Exelord/solid-tasks","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Exelord%2Fsolid-tasks","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Exelord%2Fsolid-tasks/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Exelord%2Fsolid-tasks/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Exelord%2Fsolid-tasks/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Exelord","download_url":"https://codeload.github.com/Exelord/solid-tasks/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250477812,"owners_count":21437049,"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":["actions","concurrency","jobs","soildjs","tasks"],"created_at":"2024-10-02T09:17:42.399Z","updated_at":"2025-04-23T17:08:53.246Z","avatar_url":"https://github.com/Exelord.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n  \u003cimg height=\"400\" src=\"https://raw.githubusercontent.com/exelord/solid-tasks/main/logo.png\" alt=\"Solid Tasks logo\" /\u003e\n\u003c/p\u003e\n\n# Solid Tasks\n\nSolid Tasks is a package for managing and controlling concurrent operations in Solid.js applications.\nIt provides a simple API for controlling the execution of promises and events. With Solid Tasks, you can forget about manual cancellation, concurrency side-effects and make your app user proof.\n\n## Installation\n\n```sh\nnpm install solid-tasks\n```\n\n## Requirements\n\n- Solid.js v1.0.0 or higher\n\n## Demo\n\n- [Codesandbox](https://codesandbox.io/p/sandbox/solid-tasks-rupp9f)\n\n## How to use it?\n\n## Drop mode\n\n```tsx\nimport { createJob, work } from \"solid-tasks\";\n\nconst saveDataJob = createJob(async (signal) =\u003e {\n  await work(signal, saveData)\n  console.log('Data saved');\n}, { mode: \"drop\"});\n\nsaveDataJob.perform(); // Task1: Pending...\nsaveDataJob.perform(); // Task2: Aborted. Another task is pending.\n```\n\n## Restart mode\n\n```tsx\nimport { createJob, work } from \"solid-tasks\";\n\nconst saveDataJob = createJob(async (signal) =\u003e {\n  await work(signal, saveData)\n  console.log('Data saved');\n}, { mode: \"restart\"});\n\nsaveDataJob.perform(); // Task1: Pending...\nsaveDataJob.perform(); // Task2: Aborting Task1. Pending...\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fexelord%2Fsolid-tasks","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fexelord%2Fsolid-tasks","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fexelord%2Fsolid-tasks/lists"}