| 1 |
<h1 align="center">futures-timer</h1> |
| 2 |
<div align="center"> |
| 3 |
<strong> |
| 4 |
Timeouts for futures. |
| 5 |
</strong> |
| 6 |
</div> |
| 7 |
|
| 8 |
<br /> |
| 9 |
|
| 10 |
<div align="center"> |
| 11 |
<!-- Crates version --> |
| 12 |
<a href="https://crates.io/crates/futures-timer"> |
| 13 |
<img src="https://img.shields.io/crates/v/futures-timer.svg?style=flat-square" |
| 14 |
alt="Crates.io version" /> |
| 15 |
</a> |
| 16 |
<!-- Downloads --> |
| 17 |
<a href="https://crates.io/crates/futures-timer"> |
| 18 |
<img src="https://img.shields.io/crates/d/futures-timer.svg?style=flat-square" |
| 19 |
alt="Download" /> |
| 20 |
</a> |
| 21 |
<!-- docs.rs docs --> |
| 22 |
<a href="https://docs.rs/futures-timer"> |
| 23 |
<img src="https://img.shields.io/badge/docs-latest-blue.svg?style=flat-square" |
| 24 |
alt="docs.rs docs" /> |
| 25 |
</a> |
| 26 |
<a href="https://discord.gg/JvZeVNe"> |
| 27 |
<img src="https://img.shields.io/discord/598880689856970762.svg?logo=discord&style=flat-square" |
| 28 |
alt="chat" /> |
| 29 |
</a> |
| 30 |
</div> |
| 31 |
|
| 32 |
<div align="center"> |
| 33 |
<h3> |
| 34 |
<a href="https://docs.rs/futures-timer"> |
| 35 |
API Docs |
| 36 |
</a> |
| 37 |
<span> | </span> |
| 38 |
<a href="https://github.com/async-rs/futures-timer/releases"> |
| 39 |
Releases |
| 40 |
</a> |
| 41 |
<span> | </span> |
| 42 |
<a href="https://async.rs/contribute"> |
| 43 |
Contributing |
| 44 |
</a> |
| 45 |
</h3> |
| 46 |
</div> |
| 47 |
|
| 48 |
## Installation |
| 49 |
|
| 50 |
With [cargo add][cargo-add] installed run: |
| 51 |
|
| 52 |
```sh |
| 53 |
$ cargo add futures-timer |
| 54 |
``` |
| 55 |
|
| 56 |
[cargo-add]: https://github.com/killercup/cargo-edit |
| 57 |
|
| 58 |
## Safety |
| 59 |
This crate makes use of carefully checked `unsafe` blocks to construct an |
| 60 |
efficient timer implementation. |
| 61 |
|
| 62 |
## Contributing |
| 63 |
Want to join us? Check out our ["Contributing" guide][contributing] and take a |
| 64 |
look at some of these issues: |
| 65 |
|
| 66 |
- [Issues labeled "good first issue"][good-first-issue] |
| 67 |
- [Issues labeled "help wanted"][help-wanted] |
| 68 |
|
| 69 |
[contributing]: https://github.com/async-rs/futures-timer/blob/master.github/CONTRIBUTING.md |
| 70 |
[good-first-issue]: https://github.com/async-rs/futures-timer/labels/good%20first%20issue |
| 71 |
[help-wanted]: https://github.com/async-rs/futures-timer/labels/help%20wanted |
| 72 |
|
| 73 |
## License |
| 74 |
|
| 75 |
<sup> |
| 76 |
Licensed under either of <a href="LICENSE-APACHE">Apache License, Version |
| 77 |
2.0</a> or <a href="LICENSE-MIT">MIT license</a> at your option. |
| 78 |
</sup> |
| 79 |
|
| 80 |
<br/> |
| 81 |
|
| 82 |
<sub> |
| 83 |
Unless you explicitly state otherwise, any contribution intentionally submitted |
| 84 |
for inclusion in this crate by you, as defined in the Apache-2.0 license, shall |
| 85 |
be dual licensed as above, without any additional terms or conditions. |
| 86 |
</sub> |