{"id":25339920,"url":"https://github.com/volight/rwlock","last_synced_at":"2025-04-08T11:48:21.618Z","repository":{"id":40791424,"uuid":"505476248","full_name":"volight/Rwlock","owner":"volight","description":"More friendly rwlock wraps","archived":false,"fork":false,"pushed_at":"2023-12-15T02:20:16.000Z","size":12,"stargazers_count":1,"open_issues_count":2,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-14T07:51:26.152Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://www.nuget.org/packages/Volight.LockWraps.Rwlock","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/volight.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-06-20T14:30:18.000Z","updated_at":"2022-06-20T15:09:10.000Z","dependencies_parsed_at":"2022-09-10T09:12:05.984Z","dependency_job_id":null,"html_url":"https://github.com/volight/Rwlock","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/volight%2FRwlock","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/volight%2FRwlock/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/volight%2FRwlock/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/volight%2FRwlock/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/volight","download_url":"https://codeload.github.com/volight/Rwlock/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247838418,"owners_count":21004576,"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":"2025-02-14T07:51:06.722Z","updated_at":"2025-04-08T11:48:21.597Z","avatar_url":"https://github.com/volight.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Rwlock\n\nMore friendly rwlock wraps\n\n\n**\\*must use using**\n\n\n### Rwlock\n\n```csharp\nusing Volight.LockWraps;\n\nvar rwl = new Rwlock();\n\n\nusing (_ = rwl.Read()) {\n    // .. do anything\n}\n// auto exit lock\n\n\nusing (_ = rwl.Write()) {\n    // .. do anything\n}\n// auto exit lock\n```\n\n### Rwlock\\\u003cT\u003e\n\n```csharp\nvar rwl = new Rwlock\u003cint\u003e(0);\n\n\nusing (var g = rwl.Read())\n{\n    // .. do anything\n    Console.WriteLine(g.Value);\n}\n// auto exit lock\n\n\nusing (var g = rwl.Write())\n{\n    // .. do anything\n    g.Value = 1;\n}\n// auto exit lock\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvolight%2Frwlock","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvolight%2Frwlock","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvolight%2Frwlock/lists"}