some_executor 0.7.2

A trait for libraries that abstract over any executor
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// SPDX-License-Identifier: MIT OR Apache-2.0
//! `#[some_executor::main]` with the backend named explicitly.
//!
//! The argument is any path to a type implementing
//! [`some_executor::ExecutorMain`] -- including one this macro has never heard
//! of, which is the whole reason the call goes through a trait. Here it is the
//! crate's own fallback, so the example needs no runtime dependency; a real
//! program writes something like
//! `#[some_executor::main(some_executor_tokio::TokioExecutor)]`.
//!
//! Run with: `cargo run --example main_macro_named_backend`

#[some_executor::main(some_executor::entry_point::LastResort)]
async fn main() {
    println!("named backend: LastResort");
}