safina

crates.io version license: Apache 2.0 unsafe forbidden pipeline status

A safe Rust async runtime.

Features

Limitations

Documentation

https://docs.rs/safina

safina_async_test has an #[async_test] macro for running async fn test functions.

Examples

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 }))?;

Alternatives

Changelog

TO DO

Release Process

  1. Edit Cargo.toml and bump version number.
  2. Run ./release.sh

License: Apache-2.0