{"id":15067615,"url":"https://github.com/zduny/interruptor","last_synced_at":"2026-02-11T22:14:50.310Z","repository":{"id":62441044,"uuid":"424297871","full_name":"zduny/interruptor","owner":"zduny","description":"Collection of functions generating Unix process signal receivers for use in the Crossbeam Channel select! macro.","archived":false,"fork":false,"pushed_at":"2023-09-14T14:19:07.000Z","size":14,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-04-24T09:17:34.712Z","etag":null,"topics":["channels","concurrency","rust","signal"],"latest_commit_sha":null,"homepage":"https://docs.rs/interruptor/","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zduny.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":"2021-11-03T16:22:14.000Z","updated_at":"2021-11-03T16:54:05.000Z","dependencies_parsed_at":"2024-09-25T01:25:15.720Z","dependency_job_id":"52887fd6-0ada-4e2b-8828-04aac1ac9da3","html_url":"https://github.com/zduny/interruptor","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/zduny%2Finterruptor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zduny%2Finterruptor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zduny%2Finterruptor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zduny%2Finterruptor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zduny","download_url":"https://codeload.github.com/zduny/interruptor/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243826826,"owners_count":20354220,"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":["channels","concurrency","rust","signal"],"created_at":"2024-09-25T01:25:13.062Z","updated_at":"2026-02-11T22:14:50.262Z","avatar_url":"https://github.com/zduny.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# interruptor\n\n[![Test Status](https://github.com/zduny/interruptor/actions/workflows/rust.yml/badge.svg)](https://github.com/zduny/interruptor/actions)\n[![Crate](https://img.shields.io/crates/v/interruptor.svg)](https://crates.io/crates/interruptor)\n[![API](https://docs.rs/interruptor/badge.svg)](https://docs.rs/interruptor)\n\nCollection of functions generating Unix process signal receivers \nfor use in the [Crossbeam Channel](https://github.com/crossbeam-rs/crossbeam/tree/master/crossbeam-channel) `select!` macro.\n\n## example\n\n```rust\nuse std::time::Duration;\n\nuse crossbeam_channel::{select, tick};\nuse interruptor::interruption_or_termination;\n\nfn main() {\n    let tick = tick(Duration::from_secs(1));\n    let stop = interruption_or_termination();\n\n    loop {\n        select! {\n            recv(tick) -\u003e _ =\u003e println!(\"Running!\"),\n            recv(stop) -\u003e _ =\u003e break,\n        }\n    };\n}\n```\n\n## see also\n\n[Crossbeam](https://github.com/crossbeam-rs/crossbeam)\n\n[Crossbeam Channel](https://github.com/crossbeam-rs/crossbeam/tree/master/crossbeam-channel)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzduny%2Finterruptor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzduny%2Finterruptor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzduny%2Finterruptor/lists"}