Skip to content

Commit b5dc349

Browse files
committed
[Distributed] Typed throws for whenLocal: func must be @_AEIC
1 parent 43ce060 commit b5dc349

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

stdlib/public/Distributed/DistributedActor.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -362,6 +362,7 @@ extension DistributedActor {
362362
/// state.
363363
///
364364
/// When the actor is remote, the closure won't be executed and this function will return nil.
365+
@_alwaysEmitIntoClient
365366
public nonisolated func whenLocal<T: Sendable, E>(
366367
_ body: @Sendable (isolated Self) async throws(E) -> T
367368
) async throws(E) -> T? {

0 commit comments

Comments
 (0)