await_macros 0.1.2

Macros that expand to `(expr).await`

await_macros

A bunch of macros that literally only expand to (expr).await as an alternative to the postfix syntax. These macros are a complete no-op until the syntax is actually stabilized (Rust before 1.37 forbids the use of the keyword in any fashion). 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)

Example

use await_macros::back_to_the;

fn main() {
    let future = get_some_future();

    let result = back_to_the!(future);
}

License

await_macros is licensed under both MIT and Apache 2.0