Hacker News new | ask | show | jobs
by atombender 51 days ago
That explains it. I think async closures were stabilized a year ago. Before that, you'd have needed to write out the async signature as non-async with futures (that's what async is syntactic sugar for, anyway). Something like:

    f: impl FnOnce(Object<Manager>) -> impl Future<Output = Result<T>>