I recommend this thread about storing async function pointers in a vector.
Related topics
Topic | Replies | Views | Activity | |
---|---|---|---|---|
Capturing async closure with &mut | 2 | 321 | December 24, 2022 | |
Expected function, found `Box<dyn for<'r, 's> FnMut(&'r mut HandlerInput<'s>) -> (dyn Future<Output = Result<HandlerOutput, std::io::Error>> + 'static) + Send>` when refactor function to be async | 4 | 1028 | November 19, 2022 | |
Storing async functions in a HashMap | 3 | 2651 | May 18, 2020 | |
Understanding rust's opaque types | 4 | 1126 | February 2, 2024 | |
Method that accepts future pointer | 2 | 417 | July 30, 2020 |