Open
Description
Description
For async call or blocking call, we want to test the executing order. I'd like to propose an API set similar to confirmation
Expected behavior
public struct Order4 {
public let 1: Child
public let 2: Child
public let 3: Child
public let 4: Child
public struct Child {
...
}
}
extension Order.Child {
public func callAsFunction() {
...
}
}
func order2<R>(_ body: (Order2) async throw -> R)
func order3<R>(_ body: (Order3) async throw -> R)
func order4<R>(_ body: (Order4) async throw -> R)
@Test
func orderTest() {
order3 { order in
order.1()
await Task {
...
lock.wait()
order.3()
}
await Task {
...
order.2()
lock.broadcast()
}
}
}
Actual behavior
No response
Steps to reproduce
No response
swift-testing version/commit hash
No response
Swift & OS version (output of swift --version && uname -a
)
No response
Activity