Crates.io | await_macros |
lib.rs | await_macros |
version | 0.2.0 |
source | src |
created_at | 2019-05-06 22:36:16.821892 |
updated_at | 2019-05-09 22:07:23.604518 |
description | Macros that expand to `(expr).await` |
homepage | |
repository | https://gitlab.com/repnop/await_macros |
max_upload_size | |
id | 132475 |
size | 15,587 |
await_macros
UPDATE (2019-05-09): The crate now expands on nightly! Be sure you have at least the 2019-05-08 nightly to use the crate. It will error on stable, so uh, don't try to use it on stable yet :)
A bunch of macros that literally only expand to (expr).await
as an alternative to the postfix syntax. Have fun!
Current list of macro names are:
avait!(future)
avvait!(future)
back_to_the!(future)
divine!(future)
avast!(future)
anticipate!(future)
hope!(future)
foresee!(future)
envision!(future)
doubt!(future)
predict!(future)
be_afraid!(future)
count_on!(future)
prophesize!(future)
foretell!(future)
wait_up!(future)
hey_give_that_back!(future)
aweight!(future)
hold_up!(future)
presume!(future)
pls_gib!(future)
now_becomes_the!(future)
ayywait!(future)
r#await!(future)
predestined!(future)
kismet!(future)
godot!(future)
wait!(future)
aqait!(future)
use await_macros::back_to_the;
fn main() {
let future = get_some_future();
let result = back_to_the!(future);
}
await_macros
is licensed under both MIT and Apache 2.0