apple / swift-distributed-actors

Peer-to-peer cluster implementation for Swift Distributed Actors
https://apple.github.io/swift-distributed-actors/
Apache License 2.0
601 stars 60 forks source link

[async/await] Add async await support to ActorTestProbe #830

Open ktoso opened 3 years ago

ktoso commented 3 years ago

For now let's keep all the APIs but allow them to async/await rather than block the current thread.

E.g. it should be possible to:

let probe = testKit.spawnTestProbe(...)

try await probe.expectMessage()

rather than the blocking version of this call

ktoso commented 2 years ago

rdar://84492745