label
label copied to clipboard
async func support
Can this support the async func? for example
use label::create_label;
create_label!(async fn test() -> ());
#[test::label] async fn my_fn() { println!("Test!"); }
fn main() { println!("calling all 'test' label"); // using iter you can go through all functions with this annotation. for i in test::iter() { i().await; } }