A safe Rust async runtime.
forbid(unsafe_code)
std
nightly
, for
OnceCell
and
Wake traithttps://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(Box::pin(async move {
sender.send(()).unwrap();
}));
receiver.recv().unwrap();
rust
std::thread::spawn(safina_executor::work);
let result = safina::block_on(Box::pin(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