Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
neuecc committed Jan 30, 2020
1 parent 000c62b commit 09f95cb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Expand Up @@ -57,9 +57,9 @@ await foreach (var item in ProcessX.StartAsync("dotnet --info").WithCancellation
timeout, you can use `CancellationTokenSource(delay)`.

```csharp
using (var tcs = new CancellationTokenSource(TimeSpan.FromSeconds(1)))
using (var cts = new CancellationTokenSource(TimeSpan.FromSeconds(1)))
{
await foreach (var item in ProcessX.StartAsync("dotnet --info").WithCancellation(tcs.Token))
await foreach (var item in ProcessX.StartAsync("dotnet --info").WithCancellation(cts.Token))
{
Console.WriteLine(item);
}
Expand Down

0 comments on commit 09f95cb

Please sign in to comment.