#io-operations #timeout #tokio #io-error #wrapper #apply

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

#223 in Asynchronous

Download history 663058/week @ 2024-07-19 633991/week @ 2024-07-26 611892/week @ 2024-08-02 643753/week @ 2024-08-09 637496/week @ 2024-08-16 626353/week @ 2024-08-23 556223/week @ 2024-08-30 629153/week @ 2024-09-06 556306/week @ 2024-09-13 642048/week @ 2024-09-20 610087/week @ 2024-09-27 623740/week @ 2024-10-04 595177/week @ 2024-10-11 643371/week @ 2024-10-18 636213/week @ 2024-10-25 588087/week @ 2024-11-01

2,584,144 downloads per month
Used in 281 crates (6 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–7.5MB
~47K SLoC