jdonszelmann / label

MIT License
16 stars 1 forks source link

async func support #29

Open QuarkContainer opened 1 year ago

QuarkContainer commented 1 year ago

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; } }