4 ms·
No, you can abstract over "color". You can implement a trait that lets you call both sync and async functions in the same way. You can with the same code and s
by pornel 6y ago
No, you can abstract over "color".
You can implement a trait that lets you call both sync and async functions in the same way. You can with the same code and same syntax, get results of either `Fn()->T` or `Fn()->Future<Output=T>`.
- the_gipsy 6y agoYou are right, it doesn't "poison" your code, you can always wrap or map it. I guess I was just going off some tangent.