@@ -3,7 +3,7 @@ import Dispatch
33#endif
44
55/// Make an ``AsyncExpectation`` on a given actual value. The value given is lazily evaluated.
6- public func expect< T> ( file: FileString = #file, line: UInt = #line, _ expression: @escaping @Sendable ( ) async throws -> T ? ) -> AsyncExpectation < T > {
6+ public func expect< T: Sendable > ( file: FileString = #file, line: UInt = #line, _ expression: @escaping @Sendable ( ) async throws -> T ? ) -> AsyncExpectation < T > {
77 return AsyncExpectation (
88 expression: AsyncExpression (
99 expression: expression,
@@ -12,7 +12,7 @@ public func expect<T>(file: FileString = #file, line: UInt = #line, _ expression
1212}
1313
1414/// Make an ``AsyncExpectation`` on a given actual value. The closure is lazily invoked.
15- public func expect< T> ( file: FileString = #file, line: UInt = #line, _ expression: @Sendable ( ) -> ( @Sendable ( ) async throws -> T ) ) -> AsyncExpectation < T > {
15+ public func expect< T: Sendable > ( file: FileString = #file, line: UInt = #line, _ expression: @Sendable ( ) -> ( @Sendable ( ) async throws -> T ) ) -> AsyncExpectation < T > {
1616 return AsyncExpectation (
1717 expression: AsyncExpression (
1818 expression: expression ( ) ,
@@ -21,7 +21,7 @@ public func expect<T>(file: FileString = #file, line: UInt = #line, _ expression
2121}
2222
2323/// Make an ``AsyncExpectation`` on a given actual value. The closure is lazily invoked.
24- public func expect< T> ( file: FileString = #file, line: UInt = #line, _ expression: @Sendable ( ) -> ( @Sendable ( ) async throws -> T ? ) ) -> AsyncExpectation < T > {
24+ public func expect< T: Sendable > ( file: FileString = #file, line: UInt = #line, _ expression: @Sendable ( ) -> ( @Sendable ( ) async throws -> T ? ) ) -> AsyncExpectation < T > {
2525 return AsyncExpectation (
2626 expression: AsyncExpression (
2727 expression: expression ( ) ,
@@ -40,7 +40,7 @@ public func expect(file: FileString = #file, line: UInt = #line, _ expression: @
4040
4141/// Make an ``AsyncExpectation`` on a given actual value. The value given is lazily evaluated.
4242/// This is provided to avoid confusion between `expect -> SyncExpectation` and `expect -> AsyncExpectation`.
43- public func expecta< T> ( file: FileString = #file, line: UInt = #line, _ expression: @autoclosure @escaping @Sendable ( ) async throws -> T ? ) async -> AsyncExpectation < T > {
43+ public func expecta< T: Sendable > ( file: FileString = #file, line: UInt = #line, _ expression: @autoclosure @escaping @Sendable ( ) async throws -> T ? ) async -> AsyncExpectation < T > {
4444 return AsyncExpectation (
4545 expression: AsyncExpression (
4646 expression: expression,
@@ -50,7 +50,7 @@ public func expecta<T>(file: FileString = #file, line: UInt = #line, _ expressio
5050
5151/// Make an ``AsyncExpectation`` on a given actual value. The closure is lazily invoked.
5252/// This is provided to avoid confusion between `expect -> SyncExpectation` and `expect -> AsyncExpectation`
53- public func expecta< T> ( file: FileString = #file, line: UInt = #line, _ expression: @autoclosure @Sendable ( ) -> ( @Sendable ( ) async throws -> T ) ) async -> AsyncExpectation < T > {
53+ public func expecta< T: Sendable > ( file: FileString = #file, line: UInt = #line, _ expression: @autoclosure @Sendable ( ) -> ( @Sendable ( ) async throws -> T ) ) async -> AsyncExpectation < T > {
5454 return AsyncExpectation (
5555 expression: AsyncExpression (
5656 expression: expression ( ) ,
@@ -60,7 +60,7 @@ public func expecta<T>(file: FileString = #file, line: UInt = #line, _ expressio
6060
6161/// Make an ``AsyncExpectation`` on a given actual value. The closure is lazily invoked.
6262/// This is provided to avoid confusion between `expect -> SyncExpectation` and `expect -> AsyncExpectation`
63- public func expecta< T> ( file: FileString = #file, line: UInt = #line, _ expression: @autoclosure @Sendable ( ) -> ( @Sendable ( ) async throws -> T ? ) ) async -> AsyncExpectation < T > {
63+ public func expecta< T: Sendable > ( file: FileString = #file, line: UInt = #line, _ expression: @autoclosure @Sendable ( ) -> ( @Sendable ( ) async throws -> T ? ) ) async -> AsyncExpectation < T > {
6464 return AsyncExpectation (
6565 expression: AsyncExpression (
6666 expression: expression ( ) ,
0 commit comments