@@ -3,7 +3,7 @@ import Dispatch
3
3
#endif
4
4
5
5
/// 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 > {
7
7
return AsyncExpectation (
8
8
expression: AsyncExpression (
9
9
expression: expression,
@@ -12,7 +12,7 @@ public func expect<T: Sendable>(fileID: String = #fileID, file: FileString = #fi
12
12
}
13
13
14
14
/// 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 > {
16
16
return AsyncExpectation (
17
17
expression: AsyncExpression (
18
18
expression: expression ( ) ,
@@ -21,7 +21,7 @@ public func expect<T: Sendable>(fileID: String = #fileID, file: FileString = #fi
21
21
}
22
22
23
23
/// 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 > {
25
25
return AsyncExpectation (
26
26
expression: AsyncExpression (
27
27
expression: expression ( ) ,
@@ -30,7 +30,7 @@ public func expect<T: Sendable>(fileID: String = #fileID, file: FileString = #fi
30
30
}
31
31
32
32
/// 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 > {
34
34
return AsyncExpectation (
35
35
expression: AsyncExpression (
36
36
expression: expression ( ) ,
@@ -40,7 +40,7 @@ public func expect(fileID: String = #fileID, file: FileString = #filePath, line:
40
40
41
41
/// Make an ``AsyncExpectation`` on a given actual value. The value given is lazily evaluated.
42
42
/// 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 > {
44
44
return AsyncExpectation (
45
45
expression: AsyncExpression (
46
46
expression: expression,
@@ -50,7 +50,7 @@ public func expecta<T: Sendable>(fileID: String = #fileID, file: FileString = #f
50
50
51
51
/// Make an ``AsyncExpectation`` on a given actual value. The closure is lazily invoked.
52
52
/// 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 > {
54
54
return AsyncExpectation (
55
55
expression: AsyncExpression (
56
56
expression: expression ( ) ,
@@ -60,7 +60,7 @@ public func expecta<T: Sendable>(fileID: String = #fileID, file: FileString = #f
60
60
61
61
/// Make an ``AsyncExpectation`` on a given actual value. The closure is lazily invoked.
62
62
/// 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 > {
64
64
return AsyncExpectation (
65
65
expression: AsyncExpression (
66
66
expression: expression ( ) ,
@@ -70,7 +70,7 @@ public func expecta<T: Sendable>(fileID: String = #fileID, file: FileString = #f
70
70
71
71
/// Make an ``AsyncExpectation`` on a given actual value. The closure is lazily invoked.
72
72
/// 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 > {
74
74
return AsyncExpectation (
75
75
expression: AsyncExpression (
76
76
expression: expression ( ) ,
0 commit comments