[swift-server-dev] Next HTTP API meeting
brent at architechies.com
Wed Mar 29 21:40:06 CDT 2017
> On Mar 29, 2017, at 10:53 AM, Helge Heß via swift-server-dev <swift-server-dev at swift.org> wrote:
> The other thing is that async (not NIO) essentially requires @escaping closures while sync stuff often doesn’t. @escaping is a pretty big big overhead.
If you're making the async call and then immediately blocking, then `withoutActuallyEscaping(_:do:)` will allow you to pass a non-escaping closure to the async call. The documentation even includes an example like that.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the swift-server-dev