4 ms·
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 (
by atombender 6mo 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>>