Skip to content

Commit b2fb0cf

Browse files
committed
make ABI compatible
1 parent a37e318 commit b2fb0cf

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

stdlib/public/Distributed/DistributedActor.swift

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -372,6 +372,15 @@ extension DistributedActor {
372372
return nil
373373
}
374374
}
375+
376+
// ABI: Historical whenLocal, rethrows was changed to typed throws `throws(E)`
377+
@_silgen_name("$s11Distributed0A5ActorPAAE9whenLocalyqd__Sgqd__xYiYaYbKXEYaKs8SendableRd__lF")
378+
@usableFromInline
379+
nonisolated func __abi_whenLocal<T: Sendable>(
380+
_ body: @Sendable (isolated Self) async throws -> T
381+
) async rethrows -> T? {
382+
whenLocal(body)
383+
}
375384
}
376385

377386
/// Supports the operation to produce an any Actor instance from a local

0 commit comments

Comments
 (0)