#timeout #io-operations #wrapper #tokio #apply #read #write

tokio-io-timeout

Tokio wrappers which apply timeouts to IO operations

16 releases (5 stable)

1.2.0 Dec 31, 2021
1.1.1 Jan 22, 2021
1.0.1 Dec 23, 2020
0.5.0 Oct 29, 2020
0.1.2 Jul 24, 2017

#252 in Asynchronous

Download history 193233/week @ 2023-12-25 378794/week @ 2024-01-01 505585/week @ 2024-01-08 503229/week @ 2024-01-15 522957/week @ 2024-01-22 544796/week @ 2024-01-29 532906/week @ 2024-02-05 549948/week @ 2024-02-12 511976/week @ 2024-02-19 579727/week @ 2024-02-26 565201/week @ 2024-03-04 560157/week @ 2024-03-11 567361/week @ 2024-03-18 550234/week @ 2024-03-25 573394/week @ 2024-04-01 419956/week @ 2024-04-08

2,132,627 downloads per month
Used in 286 crates (5 directly)

MIT/Apache

20KB
481 lines

tokio-io-timeout

CircleCI

Documentation

Tokio wrappers which apply timeouts to IO operations.

License

Licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.


lib.rs:

Tokio wrappers which apply timeouts to IO operations.

These timeouts are analogous to the read and write timeouts on traditional blocking sockets. A timeout countdown is initiated when a read/write operation returns Poll::Pending. If a read/write does not return successfully before the countdown expires, an io::Error with a kind of TimedOut is returned.

Dependencies

~2–3MB
~46K SLoC