{"id":16056532,"url":"https://github.com/markbates/sigtx","last_synced_at":"2025-03-17T21:31:24.015Z","repository":{"id":57479353,"uuid":"100724832","full_name":"markbates/sigtx","owner":"markbates","description":"a context implementation for signal capturing","archived":false,"fork":false,"pushed_at":"2017-09-13T22:35:29.000Z","size":2,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-28T04:57:00.832Z","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/markbates.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-08-18T15:18:08.000Z","updated_at":"2020-11-17T09:36:21.000Z","dependencies_parsed_at":"2022-09-17T04:51:49.786Z","dependency_job_id":null,"html_url":"https://github.com/markbates/sigtx","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/markbates%2Fsigtx","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/markbates%2Fsigtx/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/markbates%2Fsigtx/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/markbates%2Fsigtx/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/markbates","download_url":"https://codeload.github.com/markbates/sigtx/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243885994,"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-09T03:00:21.377Z","updated_at":"2025-03-17T21:31:23.766Z","avatar_url":"https://github.com/markbates.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# sigtx [![Build Status](https://travis-ci.org/markbates/sigtx.svg?branch=master)](https://travis-ci.org/markbates/sigtx)\n\nThis package provides an implementation proposal for this Go proposal: [https://github.com/golang/go/issues/21521](https://github.com/golang/go/issues/21521).\n\n## Usage\n\n```go\npackage main\n\nimport (\n\t\"context\"\n\t\"fmt\"\n  \"os\"\n  \"syscall\"\n\n\t\"github.com/markbates/sigtx\"\n)\n\nfunc main() {\n\tctx, cancel := sigtx.WithCancel(context.Background(), os.Interrupt, syscall.SIGTERM, syscall.SIGKILL)\n\tdefer cancel()\n\tselect {\n\tcase \u003c-ctx.Done():\n\t\tfmt.Println(\"thanks for stopping me\")\n\t}\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarkbates%2Fsigtx","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmarkbates%2Fsigtx","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarkbates%2Fsigtx/lists"}