{"id":17255303,"url":"https://github.com/crozone/asyncresetevents","last_synced_at":"2025-03-26T08:16:20.031Z","repository":{"id":88314164,"uuid":"114052657","full_name":"crozone/AsyncResetEvents","owner":"crozone","description":"Async compatible auto and manual reset events.","archived":false,"fork":false,"pushed_at":"2019-12-02T03:48:22.000Z","size":14,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-02T16:15:44.164Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C#","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/crozone.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":"2017-12-13T00:12:10.000Z","updated_at":"2019-12-02T03:48:18.000Z","dependencies_parsed_at":"2023-03-12T08:45:18.614Z","dependency_job_id":null,"html_url":"https://github.com/crozone/AsyncResetEvents","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/crozone%2FAsyncResetEvents","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/crozone%2FAsyncResetEvents/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/crozone%2FAsyncResetEvents/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/crozone%2FAsyncResetEvents/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/crozone","download_url":"https://codeload.github.com/crozone/AsyncResetEvents/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245615010,"owners_count":20644376,"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-10-15T07:11:16.060Z","updated_at":"2025-03-26T08:16:20.009Z","avatar_url":"https://github.com/crozone.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# AsyncResetEvents\n\n[![NuGet](https://img.shields.io/badge/nuget-1.0.2-green.svg)](https://www.nuget.org/packages/crozone.AsyncResetEvents/)\n[![license](https://img.shields.io/github/license/mashape/apistatus.svg?maxAge=2592000)]()\n\nAsync compatible auto and manual reset events.\n\n## Async compatible reset events\n\nThese reset events aim to serve the same purpose as the .NET `AutoResetEvent` and `ManualResetEvent`, but with async methods.\n\nThis allows events to be awaited in a manner that doesn't block the thread, allowing easy, efficient, and threadsafe signalling and synchronization.\n\n## Requirements\n\nThe library is written for NetStandard 2.0 and .NET 4.5, and is entirely self-contained with no external dependencies.\n\n## Behaviour\n\nTODO: accurately describe the implementation's behaviour in detail.\n\n## Derivative code\n\nThe code is based on Stephen Toub's [async primatives implementation](https://blogs.msdn.microsoft.com/pfxteam/2012/02/11/building-async-coordination-primitives-part-2-asyncautoresetevent/)\n\nIt is also based on Stephen Cleary's [AsyncEx library](https://github.com/StephenCleary/AsyncEx).\n\n## Implementation\n\n`AsyncAutoResetEvent` and `AsyncManualResetEvent` both share a common underlying implementation, contained within `AsyncResetEvent`. The `AsyncAutoResetEvent` and `AsyncManualResetEvent` classes themselves are really just thin convenience wrappers, and all they do is set a single boolean value within `AsyncResetEvent` to tweak its behaviour between manual and auto modes.\n\nThe motivation for this was to provide a straightforward, maintainable, and easy to test implementation. This leads to a slightly less efficient manual reset event, but (IMHO) easier to understand and maintain code.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcrozone%2Fasyncresetevents","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcrozone%2Fasyncresetevents","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcrozone%2Fasyncresetevents/lists"}