apple / apple/swift-distributed-actors

[async/await] Add async await support to ActorTestProbe

Open
#830 1 comment 0 reactions 0 assignees View on GitHub
1 - triaged help wanted t:testkit
Dominant language
Swift
Stars
679
Forks
84
PR merge metrics
No merged PRs in 30d

Description

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

Contributor guide

Open the contributing guide

Research direction

Start by locating ActorTestProbe and its blocking expectMessage API, then trace the other probe APIs that should keep their existing behavior. Check how the test kit currently waits for messages and define completion as supporting try await calls without removing the blocking APIs.

Written by the indexing model from the issue text.

Assessment

Tech stack
swift
Domain
distributed-systems, testing
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.