• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..03-May-2022-

.github/workflows/H03-May-2022-8671

benches/H03-May-2022-11097

examples/H03-May-2022-8656

src/H03-May-2022-855422

tests/H03-May-2022-129102

.cargo-checksum.jsonH A D03-May-202289 11

.cargo_vcs_info.jsonH A D01-Jan-197074 65

.gitignoreH A D01-Jan-197019 32

CHANGELOG.mdH A D01-Jan-1970672 4422

Cargo.lockH A D01-Jan-19707 KiB271238

Cargo.tomlH A D01-Jan-19701.4 KiB5343

Cargo.toml.orig-cargoH A D01-Jan-1970789 3027

LICENSE-APACHEH A D01-Jan-197010.6 KiB202169

LICENSE-MITH A D01-Jan-19701,023 2421

README.mdH A D01-Jan-19701.3 KiB4632

rustfmt.tomlH A D01-Jan-197016 21

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