#tokio #io #timeout #apply

tokio-io-timeout

Tokio wrappers which apply timeouts to IO operations

15 releases (4 stable)

1.1.1 Jan 22, 2021
1.0.1 Dec 23, 2020
0.5.0 Oct 29, 2020
0.4.0 Dec 3, 2019
0.1.2 Jul 24, 2017
Download history 3020/week @ 2020-11-04 3705/week @ 2020-11-11 4331/week @ 2020-11-18 3979/week @ 2020-11-25 2986/week @ 2020-12-02 3004/week @ 2020-12-09 2400/week @ 2020-12-16 1347/week @ 2020-12-23 1423/week @ 2020-12-30 2633/week @ 2021-01-06 3366/week @ 2021-01-13 3407/week @ 2021-01-20 3364/week @ 2021-01-27 4001/week @ 2021-02-03 6341/week @ 2021-02-10 6838/week @ 2021-02-17

12,652 downloads per month
Used in 29 crates (4 directly)

MIT/Apache

19KB
458 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

~1.5MB
~25K SLoC