Categories
Programming Swift

map() versus flatMapThrowing()

This threw me off for a little and I’d like to share my findings. I’m using Vapor on a little side-project and part of the beauty of that backend framework is that everything is a stream, backed by SwiftNIO. Now I haven’t done any benchmarks, performance-wise, but it’s nice to have a backend that uses streams, and a […]