A safe Rust async runtime.
forbid(unsafe_code)
std
nightly
, for
OnceCell
and
Wake traitsafina_executor::spawn_unpin
.safina_async_test
has an #[async_test]
macro for running async fn
test functions.
rust
let executor = safina::Executor::default();
let (sender, receiver) = std::sync::mpsc::channel();
executor.spawn(async move {
sender.send(()).unwrap();
});
receiver.recv().unwrap();
rust
let result = safina::block_on(async {
prepare_request().await?;
execute_request().await
})?;
smol
unsafe
codeasync-std
unsafe
codefutures
unsafe
codetokio
unsafe
bastion
unsafe
codenostd_async
safina-executor
v0.1.3 APIsafina_sync::Mutex
Box::pin
.safina
crate to safina-executor
.
Added new safina
crate with re-exports, examples, and integration tests.init
function that starts worker threads and the timer thread.#[async_main]
macroCargo.toml
and bump version number../release.sh
License: Apache-2.0