mirror of
https://github.com/apple/swift-nio
synced 2026-11-25 04:47:49 +00:00
Motivation: We should make use of lock.withLockVoid to simplify our code and make it more robust. Modifications: - Replace manual lock() / unlock() calls by withLockVoid(...) - Mark lock.withLock* as @_inlineable to ensure we not get an allocation for the closure. Result: Code is cleaner and easier to understand.