A safe Rust async runtime.
forbid(unsafe_code)
std
nightly
, for
OnceCell
and
Wake traitsafina_executor::spawn_unpin
.https://docs.rs/safina
safina_async_test
has an #[async_test]
macro for running async fn
test functions.
rust
safina::increase_threads_to(1);
let (sender, receiver) = std::sync::mpsc::channel();
safina::spawn(async move {
sender.send(()).unwrap();
});
receiver.recv().unwrap();
rust
std::thread::spawn(safina_executor::work);
let result = safina::block_on(async {
prepare_request().await?;
execute_request().await
})?;
unsafe
codeunsafe
codeunsafe
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.Cargo.toml
and bump version number../release.sh
License: Apache-2.0