mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-04 01:20:12 +00:00
Unit Tests migration to swift 6.2 (#5781)
This commit is contained in:
@@ -131,8 +131,8 @@ func waitForConfirmation<R>(_ comment: Comment? = nil,
|
||||
/// isolation parameter, so without this hop a body that synchronously triggers main actor
|
||||
/// work (e.g. sending a view action) would crash on the runtime's executor check.
|
||||
private func runBody<R>(on isolation: isolated (any Actor)?,
|
||||
_ body: (WaitingConfirmation) throws -> R,
|
||||
with confirmation: WaitingConfirmation) rethrows -> R {
|
||||
_ body: (WaitingConfirmation) throws -> sending R,
|
||||
with confirmation: WaitingConfirmation) rethrows -> sending R {
|
||||
try body(confirmation)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user