{"id":21243336,"url":"https://github.com/ooopsnake/timed_mutex","last_synced_at":"2026-04-25T18:31:42.321Z","repository":{"id":210735996,"uuid":"220794597","full_name":"ooopSnake/timed_mutex","owner":"ooopSnake","description":"Golang time mutex","archived":false,"fork":false,"pushed_at":"2019-11-11T01:38:03.000Z","size":2,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-01-01T21:51:10.229Z","etag":null,"topics":["mutex","timeout"],"latest_commit_sha":null,"homepage":"","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/ooopSnake.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}},"created_at":"2019-11-10T13:33:17.000Z","updated_at":"2019-11-11T01:38:05.000Z","dependencies_parsed_at":"2023-12-04T18:07:57.313Z","dependency_job_id":null,"html_url":"https://github.com/ooopSnake/timed_mutex","commit_stats":null,"previous_names":["ooopsnake/timed_mutex"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/ooopSnake/timed_mutex","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ooopSnake%2Ftimed_mutex","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ooopSnake%2Ftimed_mutex/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ooopSnake%2Ftimed_mutex/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ooopSnake%2Ftimed_mutex/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ooopSnake","download_url":"https://codeload.github.com/ooopSnake/timed_mutex/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ooopSnake%2Ftimed_mutex/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32273213,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-25T18:29:39.964Z","status":"ssl_error","status_checked_at":"2026-04-25T18:29:32.149Z","response_time":59,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["mutex","timeout"],"created_at":"2024-11-21T01:11:52.381Z","updated_at":"2026-04-25T18:31:42.305Z","avatar_url":"https://github.com/ooopSnake.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# timed_mutex\n\n![go report](https://goreportcard.com/badge/github.com/ooopSnake/timed_mutex)\n![license](https://img.shields.io/badge/license-MIT-brightgreen.svg)\n[![Maintenance](https://img.shields.io/badge/Maintained%3F-yes-green.svg)](https://github.com/ooopSnake/timed_mutex)\n[![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat)](https://github.com/ooopSnake/timed_mutex/pulls)\n[![Ask Me Anything !](https://img.shields.io/badge/Ask%20me-anything-1abc9c.svg)](https://github.com/ooopSnake/timed_mutex/issues)\n\n## Usage\n\n```go\nimport \"github.com/ooopSnake/timed_mutex\"\n```\n\n\n## Overview\n\n### 📌 Lock()\n\nacquire a lock,block until lock obtained\n\n### 📌 UnLock()\n\nrelease lock\n\n### 📌 TryLock() (locked bool) \n\ntry acquire a lock, `true` if lock obtained otherwise return `false ` immediately.\n\n\n### 📌 TryLockTimeout(t time.Duration) (locked bool)\n\ntry acquire a lock  in specified duration, `true` if lock obtained.\n\nreturn `false` if the mutex still unavailable until specified time point has been reached.\n\n## Getting Started\n\n\ninit lock 😏\n\n```go\nlocker := timed_mutex.New()\n```\n\nunlock 😐\n\n```go\nlocker.UnLock()\n```\n\ndirect lock 😐\n\n```go\nlocker.Lock()\n```\n\ntrylock 😎\n```go\nlocked :=  locker.TryLock()\n```\n\ntrylock with timeout 😎\n\n```go\nlocked := locker.TryLockTimeout(time.Second*5)\n```\n\n## License\n\nReleased under the [MIT License](https://github.com/ooopSnake/timed_mutex/blob/master/LICENSE)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fooopsnake%2Ftimed_mutex","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fooopsnake%2Ftimed_mutex","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fooopsnake%2Ftimed_mutex/lists"}