Expand description
fluent async task experiments
Read more about it in the post on postfix spawn. This is an experiment in moving the design of tasks from a model where “tasks are async threads” to a model where“tasks are parallel futures“.
This means tasks will no longer start unless explicitly .await
ed, dangling
tasks become a thing of the past, and by default async Rust will act
structurally concurrent.
Examples
use tasky::prelude::*;
async_std::task::block_on(async {
let res = async { "nori is a horse" }
.par()
.name("meow".into())
.await;
assert_eq!(res, "nori is a horse");
})
Modules
The
tasky
prelude.Structs
Task builder that configures the settings of a new task.
A handle representing a task.
Traits
Extend the
Future
trait.