Skip to content

Commit a965abd

Browse files
committed
[Distributed] AnyActor must be Sendable
1 parent d4c7194 commit a965abd

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

stdlib/public/Distributed/DistributedActor.swift

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ import _Concurrency
1818
/// Shared "base" protocol for both (local) `Actor` and (potentially remote)
1919
/// `DistributedActor`.
2020
///
21-
/// FIXME: !!! We'd need Actor to also conform to this, but don't want to add that conformance in _Concurrency yet.
21+
/// FIXME(distributed): We'd need Actor to also conform to this, but don't want to add that conformance in _Concurrency yet.
2222
@_marker
23-
public protocol AnyActor: AnyObject {}
23+
public protocol AnyActor: Sendable, AnyObject {}
2424

2525
// ==== Distributed Actor -----------------------------------------------------
2626

@@ -205,14 +205,9 @@ func __isLocalActor(_ actor: AnyObject) -> Bool {
205205

206206
// ==== Proxy Actor lifecycle --------------------------------------------------
207207

208-
/// Called to initialize the distributed-remote actor 'proxy' instance in an actor.
209-
/// The implementation will call this within the actor's initializer.
210208
@_silgen_name("swift_distributedActor_remote_initialize")
211209
func _distributedActorRemoteInitialize(_ actorType: Builtin.RawPointer) -> Any
212210

213-
@_silgen_name("swift_distributedActor_remote_create")
214-
func distributedActorRemoteCreate(identity: Any, transport: Any) -> Any // TODO: make it typed
215-
216211
/// Called to destroy the default actor instance in an actor.
217212
/// The implementation will call this within the actor's deinit.
218213
///

0 commit comments

Comments
 (0)