{"id":19429767,"url":"https://github.com/chayleaf/async-shared-timeout","last_synced_at":"2025-04-24T18:32:48.652Z","repository":{"id":64356540,"uuid":"575209596","full_name":"chayleaf/async-shared-timeout","owner":"chayleaf","description":"rust async timeout crate","archived":false,"fork":false,"pushed_at":"2024-03-20T07:35:24.000Z","size":29,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-10-07T22:19:35.201Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"0bsd","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/chayleaf.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE-0BSD","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}},"created_at":"2022-12-07T01:55:10.000Z","updated_at":"2023-05-09T00:10:50.000Z","dependencies_parsed_at":"2024-03-20T08:47:05.544Z","dependency_job_id":null,"html_url":"https://github.com/chayleaf/async-shared-timeout","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/chayleaf%2Fasync-shared-timeout","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chayleaf%2Fasync-shared-timeout/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chayleaf%2Fasync-shared-timeout/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chayleaf%2Fasync-shared-timeout/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chayleaf","download_url":"https://codeload.github.com/chayleaf/async-shared-timeout/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223670603,"owners_count":17183353,"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-11-10T14:21:06.436Z","updated_at":"2024-11-10T14:21:07.118Z","avatar_url":"https://github.com/chayleaf.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![crates.io](https://img.shields.io/crates/v/async-shared-timeout.svg)](https://crates.io/crates/async-shared-timeout) [![docs.rs](https://docs.rs/async-shared-timeout/badge.svg)](https://docs.rs/async-shared-timeout)\n\n# Async Shared Timeout\n\nA Rust crate for creating a shared timeout. A sample use case is having multiple streams open from the client, and expiring them only when all of them stopped sending data. Another example is a proxy with a timeout - the proxy times out only when both the local and the remote ends time out.\n\n# Feature flags:\n \n**Wrapper**\n\n- `wrapper` - enable a wrapper around types that you can use for easier resetting. By default,\n              only future support is enabled (reset the timer upon future completion).\n- `read-write` - enable async `Read`/`Write` trait support for the wrapper (reset the timer\n                 upon successful read/write operations)\n- `stream` - enable `Stream` support for the wrapper (reset the timer upon stream advancement).\n\n**Integration with other runtimes**\n\n- `std` (enabled by default) - enable `std` integration. Currently it's only used to enable\n                               `Arc` and `AsRawFd` support for the wrapper.\n- `tokio` (enabled by default) - [`tokio`](https://docs.rs/tokio) support\n- `async-io` - support [`async-io`](https://docs.rs/async-io) as the timer runtime.\n- `futures-io` - support [`futures-io`](https://docs.rs/futures-io) traits.\n- `async-std` - [`async-std`](https://docs.rs/async-std) support (enables `async-io` and `futures-io`).\n\n## Changelog\n\n- 0.1.0 - initial release\n- 0.1.1 - `AsRawFd` support for `Wrapper`\n- 0.2.0 - minor API cleanup\n- 0.2.1 - updated dependencies, added `Timeout::new_tokio`\n- 0.2.2 - add `TokioTimeout` and `TokioWrapper` type aliases\n\n## License\n\nTL;DR do whatever you want.\n\nLicensed under either the [BSD Zero Clause License](LICENSE-0BSD) (https://opensource.org/licenses/0BSD), the [Apache 2.0 License](LICENSE-APACHE) (http://www.apache.org/licenses/LICENSE-2.0) or the [MIT License](LICENSE-MIT) (http://opensource.org/licenses/MIT), at your choice.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchayleaf%2Fasync-shared-timeout","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchayleaf%2Fasync-shared-timeout","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchayleaf%2Fasync-shared-timeout/lists"}