{"id":15923948,"url":"https://github.com/protolambda/ctxlock","last_synced_at":"2025-03-17T21:31:37.539Z","repository":{"id":246308342,"uuid":"819760126","full_name":"protolambda/ctxlock","owner":"protolambda","description":"Go Read-Write lock with context cancellation support","archived":false,"fork":false,"pushed_at":"2024-06-25T06:42:18.000Z","size":7,"stargazers_count":9,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-28T04:58:34.183Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","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/protolambda.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":"2024-06-25T06:40:08.000Z","updated_at":"2024-11-13T17:11:22.000Z","dependencies_parsed_at":"2024-06-27T05:08:31.915Z","dependency_job_id":"fed4f7ef-de8d-4fdd-8834-4afe2544b62d","html_url":"https://github.com/protolambda/ctxlock","commit_stats":null,"previous_names":["protolambda/ctxlock"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/protolambda%2Fctxlock","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/protolambda%2Fctxlock/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/protolambda%2Fctxlock/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/protolambda%2Fctxlock/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/protolambda","download_url":"https://codeload.github.com/protolambda/ctxlock/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243886014,"owners_count":20363649,"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-06T21:03:12.869Z","updated_at":"2025-03-17T21:31:37.247Z","avatar_url":"https://github.com/protolambda.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ctxlock\n\nMinimal Go read-write-lock with context-cancellation support.\n\nUsage is like `symc.RWMutex`:\n- the `Lock` must not be copied\n- `Lock()`/`Unlock()` for write locking\n- `RLock()`/`RUnlock()` for read locking\n- `LockCtx(ctx) error` for write locking with cancellation\n- `RLockCtx(ctx) error` for read locking with cancellation\n- panics on invalid usage (unlocks when not locked, or unlock type not matching lock type)\n\n## License\n\nMIT, see [`LICENSE`](./LICENSE) file.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprotolambda%2Fctxlock","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fprotolambda%2Fctxlock","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprotolambda%2Fctxlock/lists"}