async_instant

Macro async_instant 

Source
macro_rules! async_instant {
    ($id:expr, $category:expr, $name:expr $(, $key:expr => $val:expr)*) => { ... };
}
Expand description

Convenience macro for the async_instant function, which can be used to emit an async instant event.

Example:

{
    let id = Id::new();
    async_instant!(id, "foo", "bar", "x" => 5, "y" => 10);
}

is equivalent to

{
    let id = Id::new();
    async_instant(
        id, "foo", "bar",
        &[ArgValue::of("x", 5), ArgValue::of("y", 10)]
    );
}