Crate tangle [−] [src]
A lightweight futures package inspired by Scala. The goals are to provide
a simple interface for creating futures and, most importantly, composing multiple
asynchronous actions together. Thus, all futures return Async<T, E>
which is
an asynchronous equivalent to Result<T, E>
, the only difference being that
an extra variant Continue(Future<T, E>)
allows for composition.
Reexports
pub use Async::Continue; |
Macros
async | |
compose |
compose!(future! { err!(123) }) |
err | |
future |
Create a |
ok |
ok!(123) |
Structs
Future |
A value that will be resolved sometime into the future, asynchronously. |
Promise |
Enums
Async |
Asynchronous version of |
PromiseState |