@@ -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: Sendable > ( fileID: String = #fileID, file: FileString = #filePath, line: UInt = #line, column: UInt = #column, _ expression: @escaping @Sendable ( ) async throws -> sending T? ) -> AsyncExpectation < T > {
6+ public func expect< T: Sendable > ( fileID: String = #fileID, file: FileString = #filePath, line: UInt = #line, column: UInt = #column, _ 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: Sendable>(fileID: String = #fileID, file: FileString = #fi
1212}
1313
1414/// Make an ``AsyncExpectation`` on a given actual value. The closure is lazily invoked.
15- public func expect< T: Sendable > ( fileID: String = #fileID, file: FileString = #filePath, line: UInt = #line, column: UInt = #column, _ expression: @Sendable ( ) -> ( @Sendable ( ) async throws -> sending T) ) -> AsyncExpectation < T > {
15+ public func expect< T: Sendable > ( fileID: String = #fileID, file: FileString = #filePath, line: UInt = #line, column: UInt = #column, _ 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: Sendable>(fileID: String = #fileID, file: FileString = #fi
2121}
2222
2323/// Make an ``AsyncExpectation`` on a given actual value. The closure is lazily invoked.
24- public func expect< T: Sendable > ( fileID: String = #fileID, file: FileString = #filePath, line: UInt = #line, column: UInt = #column, _ expression: @Sendable ( ) -> ( @Sendable ( ) async throws -> sending T? ) ) -> AsyncExpectation < T > {
24+ public func expect< T: Sendable > ( fileID: String = #fileID, file: FileString = #filePath, line: UInt = #line, column: UInt = #column, _ expression: @Sendable ( ) -> ( @Sendable ( ) async throws -> T ? ) ) -> AsyncExpectation < T > {
2525 return AsyncExpectation (
2626 expression: AsyncExpression (
2727 expression: expression ( ) ,
@@ -30,7 +30,7 @@ public func expect<T: Sendable>(fileID: String = #fileID, file: FileString = #fi
3030}
3131
3232/// Make an ``AsyncExpectation`` on a given actual value. The closure is lazily invoked.
33- public func expect( fileID: String = #fileID, file: FileString = #filePath, line: UInt = #line, column: UInt = #column, _ expression: @Sendable ( ) -> ( @Sendable ( ) async throws -> sending Void) ) -> AsyncExpectation < Void > {
33+ public func expect( fileID: String = #fileID, file: FileString = #filePath, line: UInt = #line, column: UInt = #column, _ expression: @Sendable ( ) -> ( @Sendable ( ) async throws -> Void ) ) -> AsyncExpectation < Void > {
3434 return AsyncExpectation (
3535 expression: AsyncExpression (
3636 expression: expression ( ) ,
@@ -40,7 +40,7 @@ public func expect(fileID: String = #fileID, file: FileString = #filePath, line:
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: Sendable > ( fileID: String = #fileID, file: FileString = #filePath, line: UInt = #line, column: UInt = #column, _ expression: @autoclosure @escaping @Sendable ( ) async throws -> sending T? ) async -> AsyncExpectation < T > {
43+ public func expecta< T: Sendable > ( fileID: String = #fileID, file: FileString = #filePath, line: UInt = #line, column: UInt = #column, _ 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: Sendable>(fileID: String = #fileID, file: FileString = #f
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: Sendable > ( fileID: String = #fileID, file: FileString = #filePath, line: UInt = #line, column: UInt = #column, _ expression: @autoclosure @Sendable ( ) -> ( @Sendable ( ) async throws -> sending T) ) async -> AsyncExpectation < T > {
53+ public func expecta< T: Sendable > ( fileID: String = #fileID, file: FileString = #filePath, line: UInt = #line, column: UInt = #column, _ 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: Sendable>(fileID: String = #fileID, file: FileString = #f
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: Sendable > ( fileID: String = #fileID, file: FileString = #filePath, line: UInt = #line, column: UInt = #column, _ expression: @autoclosure @Sendable ( ) -> ( @Sendable ( ) async throws -> sending T? ) ) async -> AsyncExpectation < T > {
63+ public func expecta< T: Sendable > ( fileID: String = #fileID, file: FileString = #filePath, line: UInt = #line, column: UInt = #column, _ expression: @autoclosure @Sendable ( ) -> ( @Sendable ( ) async throws -> T ? ) ) async -> AsyncExpectation < T > {
6464 return AsyncExpectation (
6565 expression: AsyncExpression (
6666 expression: expression ( ) ,
@@ -70,7 +70,7 @@ public func expecta<T: Sendable>(fileID: String = #fileID, file: FileString = #f
7070
7171/// Make an ``AsyncExpectation`` on a given actual value. The closure is lazily invoked.
7272/// This is provided to avoid confusion between `expect -> SyncExpectation` and `expect -> AsyncExpectation`
73- public func expecta( fileID: String = #fileID, file: FileString = #filePath, line: UInt = #line, column: UInt = #column, _ expression: @autoclosure @Sendable ( ) -> ( @Sendable ( ) async throws -> sending Void) ) async -> AsyncExpectation < Void > {
73+ public func expecta( fileID: String = #fileID, file: FileString = #filePath, line: UInt = #line, column: UInt = #column, _ expression: @autoclosure @Sendable ( ) -> ( @Sendable ( ) async throws -> Void ) ) async -> AsyncExpectation < Void > {
7474 return AsyncExpectation (
7575 expression: AsyncExpression (
7676 expression: expression ( ) ,
0 commit comments