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

#444 in Testing

Download history 339/week @ 2024-07-28 263/week @ 2024-08-04 54/week @ 2024-08-11 27/week @ 2024-08-18 70/week @ 2024-08-25 145/week @ 2024-09-01 156/week @ 2024-09-08 68/week @ 2024-09-15 148/week @ 2024-09-22 88/week @ 2024-09-29 143/week @ 2024-10-06 272/week @ 2024-10-13 199/week @ 2024-10-20 122/week @ 2024-10-27 174/week @ 2024-11-03 116/week @ 2024-11-10

631 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