@@ -7,7 +7,7 @@ public func require<T>(
77 file: FileString = #file,
88 line: UInt = #line,
99 customError: Error ? = nil ,
10- _ expression: @autoclosure @escaping ( ) throws -> sending T?
10+ _ expression: @autoclosure @escaping @ Sendable ( ) throws -> sending T?
1111) -> SyncRequirement < T > {
1212 return SyncRequirement (
1313 expression: Expression (
@@ -26,7 +26,7 @@ public func require<T>(
2626 file: FileString = #file,
2727 line: UInt = #line,
2828 customError: Error ? = nil ,
29- _ expression: @autoclosure ( ) -> sending ( ( ) throws -> sending T)
29+ _ expression: @autoclosure ( ) -> ( @ Sendable ( ) throws -> sending T)
3030) -> SyncRequirement < T > {
3131 return SyncRequirement (
3232 expression: Expression (
@@ -45,7 +45,7 @@ public func require<T>(
4545 file: FileString = #file,
4646 line: UInt = #line,
4747 customError: Error ? = nil ,
48- _ expression: @autoclosure ( ) -> sending ( ( ) throws -> sending T? )
48+ _ expression: @autoclosure ( ) -> ( @ Sendable ( ) throws -> sending T? )
4949) -> SyncRequirement < T > {
5050 return SyncRequirement (
5151 expression: Expression (
@@ -64,7 +64,7 @@ public func require(
6464 file: FileString = #file,
6565 line: UInt = #line,
6666 customError: Error ? = nil ,
67- _ expression: @autoclosure ( ) -> sending ( ( ) throws -> sending Void)
67+ _ expression: @autoclosure ( ) -> ( @ Sendable ( ) throws -> Void )
6868) -> SyncRequirement < Void > {
6969 return SyncRequirement (
7070 expression: Expression (
@@ -85,7 +85,7 @@ public func requires<T>(
8585 file: FileString = #file,
8686 line: UInt = #line,
8787 customError: Error ? = nil ,
88- _ expression: @autoclosure @escaping ( ) throws -> sending T?
88+ _ expression: @autoclosure @escaping @ Sendable ( ) throws -> sending T?
8989) -> SyncRequirement < T > {
9090 return SyncRequirement (
9191 expression: Expression (
@@ -106,7 +106,7 @@ public func requires<T>(
106106 file: FileString = #file,
107107 line: UInt = #line,
108108 customError: Error ? = nil ,
109- _ expression: @autoclosure ( ) -> sending ( ( ) throws -> sending T)
109+ _ expression: @autoclosure ( ) -> ( @ Sendable ( ) throws -> sending T)
110110) -> SyncRequirement < T > {
111111 return SyncRequirement (
112112 expression: Expression (
@@ -127,7 +127,7 @@ public func requires<T>(
127127 file: FileString = #file,
128128 line: UInt = #line,
129129 customError: Error ? = nil ,
130- _ expression: @autoclosure ( ) -> sending ( ( ) throws -> sending T? )
130+ _ expression: @autoclosure ( ) -> ( @ Sendable ( ) throws -> sending T? )
131131) -> SyncRequirement < T > {
132132 return SyncRequirement (
133133 expression: Expression (
@@ -148,7 +148,7 @@ public func requires(
148148 file: FileString = #file,
149149 line: UInt = #line,
150150 customError: Error ? = nil ,
151- _ expression: @autoclosure ( ) -> sending ( ( ) throws -> sending Void)
151+ _ expression: @autoclosure ( ) -> ( @ Sendable ( ) throws -> sending Void)
152152) -> SyncRequirement < Void > {
153153 return SyncRequirement (
154154 expression: Expression (
@@ -260,7 +260,7 @@ public func unwrap<T>(
260260 file: FileString = #file,
261261 line: UInt = #line,
262262 customError: Error ? = nil ,
263- _ expression: @autoclosure @escaping ( ) throws -> sending T?
263+ _ expression: @autoclosure @escaping @ Sendable ( ) throws -> sending T?
264264) throws -> T {
265265 try requires ( file: file, line: line, customError: customError, expression ( ) ) . toNot ( beNil ( ) )
266266}
@@ -275,7 +275,7 @@ public func unwrap<T>(
275275 file: FileString = #file,
276276 line: UInt = #line,
277277 customError: Error ? = nil ,
278- _ expression: @autoclosure ( ) -> sending ( ( ) throws -> sending T? )
278+ _ expression: @autoclosure ( ) -> ( @ Sendable ( ) throws -> sending T? )
279279) throws -> T {
280280 try requires ( file: file, line: line, customError: customError, expression ( ) ) . toNot ( beNil ( ) )
281281}
@@ -290,7 +290,7 @@ public func unwraps<T>(
290290 file: FileString = #file,
291291 line: UInt = #line,
292292 customError: Error ? = nil ,
293- _ expression: @autoclosure @escaping ( ) throws -> sending T?
293+ _ expression: @autoclosure @escaping @ Sendable ( ) throws -> sending T?
294294) throws -> T {
295295 try requires ( file: file, line: line, customError: customError, expression ( ) ) . toNot ( beNil ( ) )
296296}
@@ -305,7 +305,7 @@ public func unwraps<T>(
305305 file: FileString = #file,
306306 line: UInt = #line,
307307 customError: Error ? = nil ,
308- _ expression: @autoclosure ( ) -> sending ( ( ) throws -> sending T? )
308+ _ expression: @autoclosure ( ) -> ( @ Sendable ( ) throws -> sending T? )
309309) throws -> T {
310310 try requires ( file: file, line: line, customError: customError, expression ( ) ) . toNot ( beNil ( ) )
311311}
0 commit comments