label icon indicating copy to clipboard operation
label copied to clipboard

async func support

Open QuarkContainer opened this issue 2 years ago • 0 comments

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

QuarkContainer avatar May 26 '23 15:05 QuarkContainer