Skip to content

ReplSignalRun

A run started by StartRunAsync(string, CancellationToken) and still in flight. Its signal scope is registered by the time the start call returns, so a signal delivered from here on reaches it rather than falling through as inert — for as long as the run lasts. See StartRunAsync(string, CancellationToken) for what the start does and does not guarantee.

public sealed class ReplSignalRun

The command line this run was started with.

public string CommandLine { get; }

string

Completes when the run finishes. Faults with TimeoutException when the run outlives RunTimeout, which is what a signal that never arrived looks like.

Bind the run to a local before awaiting this. Chaining the two — await (await harness.StartRunAsync(x)).Completion — trips VSTHRD003 in a project that treats the Visual Studio threading analyzers as errors.

public Task<ReplSignalRunResult> Completion { get; }

Task<ReplSignalRunResult>