4 releases (2 breaking)

0.3.1 Aug 14, 2023
0.3.0 Dec 11, 2022
0.2.0 Jul 19, 2020
0.1.1 Jul 19, 2020

#410 in Testing

Download history 260/week @ 2024-06-08 158/week @ 2024-06-15 175/week @ 2024-06-22 183/week @ 2024-06-29 285/week @ 2024-07-06 249/week @ 2024-07-13 271/week @ 2024-07-20 337/week @ 2024-07-27 274/week @ 2024-08-03 52/week @ 2024-08-10 30/week @ 2024-08-17 68/week @ 2024-08-24 135/week @ 2024-08-31 134/week @ 2024-09-07 94/week @ 2024-09-14 143/week @ 2024-09-21

518 downloads per month
Used in rocketmq

Apache-2.0

15KB
334 lines

Crates.io Apache-2.0 licensed Build status

Awaitility for Rust

Fast, Simple, Straightforward Test utility for async functionalities.

Getting Started

[dev-dependencies]
awaitility = "0.3"

Awaitility itself has 0 dependencies.

Basic Usage

awaitility::at_most(Duration::from_millis(100)).until(|| {test something is true});
awaitility::at_least(Duration::from_millis(100)).always(|| {test something is true);
// ...

See RustDoc for more examples.

Licence

Apache License 2.0

Author

Cause Chung (cuzfrog@gmail.com, cuzfrog@139.com)

No runtime deps