Skip to content

Commit 1e41037

Browse files
committed
PR comment
1 parent f1688e3 commit 1e41037

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Sources/NIOCore/NIOLoopBound.swift

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,6 @@ public final class NIOLoopBoundBox<Value>: @unchecked Sendable {
176176
}
177177
}
178178

179-
#if compiler(>=6.0)
180179
/// Safely access and potentially modify the contained value with a closure.
181180
///
182181
/// This method provides a way to perform operations on the contained value while ensuring
@@ -189,11 +188,11 @@ public final class NIOLoopBoundBox<Value>: @unchecked Sendable {
189188
/// - Returns: The value returned by the `handler` closure.
190189
/// - Note: This method is particularly useful when you need to perform read and write operations
191190
/// on the value because it reduces the on EventLoop checks.
191+
@inlinable
192192
public func withValue<Success, Failure: Error>(
193193
_ handler: (inout Value) throws(Failure) -> Success
194194
) throws(Failure) -> Success {
195195
self.eventLoop.preconditionInEventLoop()
196196
return try handler(&self._value)
197197
}
198-
#endif
199198
}

0 commit comments

Comments
 (0)