apple / swift-distributed-actors

Peer-to-peer cluster implementation for Swift Distributed Actors

Home Page:https://apple.github.io/swift-distributed-actors/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Recover lost ordering guarantee in remoteCall/localCall impls

ktoso opened this issue · comments

We use a new task in the impls:


        let anyReturn = try await withCheckedThrowingContinuation { cc in
            Task { [invocation] in // FIXME: make an async stream here since we lost ordering guarantees here

which loses ordering; we must instead to an async stream per recipient I suppose.