1 2 3 4 5 6 7 8 9 10 11 12
use icedwright_probe::TaskName; #[derive(Debug)] pub struct Note; #[derive(Debug)] pub struct ApiError; icedwright_probe::task_name!(pub SaveNote: Result<Note, ApiError>); fn main() { let _task = SaveNote::task(async { 3 }); }