Comment by atombender
2 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>>
No comments yet
Contribute on Hacker News ↗