{"id":21807323,"url":"https://github.com/akramarenkov/breaker","last_synced_at":"2025-03-21T08:14:03.110Z","repository":{"id":217671236,"uuid":"744515483","full_name":"akramarenkov/breaker","owner":"akramarenkov","description":"Library that provides to break goroutine and wait it completion","archived":false,"fork":false,"pushed_at":"2025-03-15T16:29:24.000Z","size":27,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-15T17:28:47.011Z","etag":null,"topics":["break","complete","go","golang"],"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/akramarenkov.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"COPYING","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-01-17T13:10:23.000Z","updated_at":"2025-03-15T16:29:27.000Z","dependencies_parsed_at":null,"dependency_job_id":"81a67c41-ffd7-4eb3-b628-714e9d028536","html_url":"https://github.com/akramarenkov/breaker","commit_stats":null,"previous_names":["akramarenkov/breaker"],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akramarenkov%2Fbreaker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akramarenkov%2Fbreaker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akramarenkov%2Fbreaker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akramarenkov%2Fbreaker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/akramarenkov","download_url":"https://codeload.github.com/akramarenkov/breaker/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244759961,"owners_count":20505716,"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":["break","complete","go","golang"],"created_at":"2024-11-27T12:39:28.532Z","updated_at":"2025-03-21T08:14:03.103Z","avatar_url":"https://github.com/akramarenkov.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Breaker\n\n[![Go Reference](https://pkg.go.dev/badge/github.com/akramarenkov/breaker.svg)](https://pkg.go.dev/github.com/akramarenkov/breaker)\n[![Go Report Card](https://goreportcard.com/badge/github.com/akramarenkov/breaker)](https://goreportcard.com/report/github.com/akramarenkov/breaker)\n[![Coverage Status](https://coveralls.io/repos/github/akramarenkov/breaker/badge.svg)](https://coveralls.io/github/akramarenkov/breaker)\n\n## Purpose\n\nLibrary that provides to break goroutine and wait it completion\n\n## Usage\n\nExample:\n\n```go\npackage main\n\nimport (\n    \"fmt\"\n\n    \"github.com/akramarenkov/breaker\"\n)\n\nfunc main() {\n    brk := breaker.New()\n\n    go func() {\n        defer brk.Complete()\n\n        _, opened := \u003c-brk.IsBreaked()\n\n        fmt.Println(opened)\n    }()\n\n    brk.Break()\n\n    fmt.Println(brk.IsStopped())\n    // Output:\n    // false\n    // true\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fakramarenkov%2Fbreaker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fakramarenkov%2Fbreaker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fakramarenkov%2Fbreaker/lists"}