Name | Date | Size | #Lines | LOC | ||
---|---|---|---|---|---|---|
.. | 03-May-2022 | - | ||||
.github/workflows/ | H | 03-May-2022 | - | 86 | 71 | |
benches/ | H | 03-May-2022 | - | 110 | 97 | |
examples/ | H | 03-May-2022 | - | 86 | 56 | |
src/ | H | 03-May-2022 | - | 855 | 422 | |
tests/ | H | 03-May-2022 | - | 129 | 102 | |
.cargo-checksum.json | H A D | 03-May-2022 | 89 | 1 | 1 | |
.cargo_vcs_info.json | H A D | 01-Jan-1970 | 74 | 6 | 5 | |
.gitignore | H A D | 01-Jan-1970 | 19 | 3 | 2 | |
CHANGELOG.md | H A D | 01-Jan-1970 | 672 | 44 | 22 | |
Cargo.lock | H A D | 01-Jan-1970 | 7 KiB | 271 | 238 | |
Cargo.toml | H A D | 01-Jan-1970 | 1.4 KiB | 53 | 43 | |
Cargo.toml.orig-cargo | H A D | 01-Jan-1970 | 789 | 30 | 27 | |
LICENSE-APACHE | H A D | 01-Jan-1970 | 10.6 KiB | 202 | 169 | |
LICENSE-MIT | H A D | 01-Jan-1970 | 1,023 | 24 | 21 | |
README.md | H A D | 01-Jan-1970 | 1.3 KiB | 46 | 32 | |
rustfmt.toml | H A D | 01-Jan-1970 | 16 | 2 | 1 |
README.md
1# async-executor 2 3[![Build](https://github.com/smol-rs/async-executor/workflows/Build%20and%20test/badge.svg)]( 4https://github.com/smol-rs/async-executor/actions) 5[![License](https://img.shields.io/badge/license-Apache--2.0_OR_MIT-blue.svg)]( 6https://github.com/smol-rs/async-executor) 7[![Cargo](https://img.shields.io/crates/v/async-executor.svg)]( 8https://crates.io/crates/async-executor) 9[![Documentation](https://docs.rs/async-executor/badge.svg)]( 10https://docs.rs/async-executor) 11 12Async executors. 13 14## Examples 15 16```rust 17use async_executor::Executor; 18use futures_lite::future; 19 20// Create a new executor. 21let ex = Executor::new(); 22 23// Spawn a task. 24let task = ex.spawn(async { 25 println!("Hello world"); 26}); 27 28// Run the executor until the task completes. 29future::block_on(ex.run(task)); 30``` 31 32## License 33 34Licensed under either of 35 36 * Apache License, Version 2.0 ([LICENSE-APACHE](LICENSE-APACHE) or http://www.apache.org/licenses/LICENSE-2.0) 37 * MIT license ([LICENSE-MIT](LICENSE-MIT) or http://opensource.org/licenses/MIT) 38 39at your option. 40 41#### Contribution 42 43Unless you explicitly state otherwise, any contribution intentionally submitted 44for inclusion in the work by you, as defined in the Apache-2.0 license, shall be 45dual licensed as above, without any additional terms or conditions. 46