File tree Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Original file line number Diff line number Diff 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}
You can’t perform that action at this time.
0 commit comments