{"id":22249760,"url":"https://github.com/tarquas/asclasit","last_synced_at":"2025-03-25T12:15:21.239Z","repository":{"id":57184692,"uuid":"353145306","full_name":"tarquas/asclasit","owner":"tarquas","description":"ASync CLasses + ASync ITerators","archived":false,"fork":false,"pushed_at":"2022-02-21T06:53:20.000Z","size":745,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-26T03:35:35.029Z","etag":null,"topics":["async","class","framework","generator","helpers","iterator","streaming-algorithms"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/tarquas.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}},"created_at":"2021-03-30T21:24:38.000Z","updated_at":"2021-11-08T14:57:07.000Z","dependencies_parsed_at":"2022-09-14T09:01:08.321Z","dependency_job_id":null,"html_url":"https://github.com/tarquas/asclasit","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tarquas%2Fasclasit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tarquas%2Fasclasit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tarquas%2Fasclasit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tarquas%2Fasclasit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tarquas","download_url":"https://codeload.github.com/tarquas/asclasit/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245458703,"owners_count":20618697,"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","class","framework","generator","helpers","iterator","streaming-algorithms"],"created_at":"2024-12-03T06:28:39.780Z","updated_at":"2025-03-25T12:15:21.170Z","avatar_url":"https://github.com/tarquas.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# asclasit\nASync CLasses + ASync ITerators\n\n# Description\nThis is public-ready spin off from related internal experiments of [ClAsync](https://github.com/tarquas/clasync).\nAdvantages of this module:\n- 100% test coverage;\n- More project files, less file sizes;\n- Thin: has no external dependency modules, only core essentials taken from `ClAsync` and improved;\n- Utilizes up-to-date Node.js features;\n- Targetting serverless/stateless environments;\n- Despite the missing documentation, test cases describe the usage.\n\n## Differences\nThere are architectural differences listed below:\n\n### Async Classes\n| Item        |  `ClAsync` |  `AsClAsIt` |\n|-------------|------------|-------------|\n| Instance co-op | Dependency tree | State isolation |\n| Life cycle  | Once (`init`-\u003e`final`) | Muplitle (...-\u003e`wake`-\u003e`sleep`-\u003e...) |\n| Lifetime Methods | `init()`, `final()` | (Async) Generator `*[$]()` depicting whole lifetime |\n| Instance state | Non-configurable `[$.inst]` | Configurable `[$]` via `static [$]`: options object or custom `$.Inst` subclass |\n| Async Events      | Special class (`emitter.js`) | Automatic for each instance; methods of instance state `[$]` |\n| Instance Shutdown | Supported (via `final`) | Not supported (global shutdown handler only for non-stateless environments) |\n\n### (Async) Iterators\n| Item        |  `ClAsync` |  `AsClAsIt` |\n|-------------|------------|-------------|\n| Helpers     | Functions: `$.\u003cname\u003e[Iter\\|Async](it, ...)` | Wrapped chain: `$[.Iter\\|.AsIt\\|](it).\u003cname\u003e(...).\u003cname\u003e(...)` |\n| Extensible Classes | Not supported | Supported for sync (`$.Iter`) and async (`$.AsIt`) iterator classes |\n\n## Testing\nTests and coverage powered by [Jest](https://jestjs.io/)\n\n# Thanks\n[Time Doctor](https://timedoctor.com/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftarquas%2Fasclasit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftarquas%2Fasclasit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftarquas%2Fasclasit/lists"}