thunks 0.0.3

Asynchronous composer for Rust.
Documentation

thunks

Asynchronous composer for Rust.

Crates version Build Status Coverage Status Crates downloads

API

Documentation https://iorust.github.io/thunks/thunks

extern crate thunks;
use thunks::Thunk;
pub struct Thunk<T, E>(_)

impl<T, E> Thunk<T, E> where T: Send + 'static, E: Send + 'static

fn new(task: F) -> Thunk<T, E> where F: Fn(Box<Fn(Result<T, E>) + Send + 'static>) + Send + 'static

fn await(&self) -> Result<T, E>