forked from apple/swift-nio
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
don't capture in the callout closures in BaseSocketChannel (apple#658)
Motivation: We were complaining that we can't use `@convention(thin)` in a place where we really need to make sure we don't get allocations for returning a closure (that doesn't capture any context), so it should just be a function pointer. In reality however, we were actually capturing context... Modifications: Don't capture context anymore. Result: Closures should not actually not enclose anything.
- Loading branch information
Showing
1 changed file
with
34 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters