Skip to content

Commit

Permalink
Hopefully fix
Browse files Browse the repository at this point in the history
  • Loading branch information
LeoMarlow committed Dec 13, 2024
1 parent e51c2ed commit 9686688
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Assignment/PingProcess.cs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public Task<PingResult> RunTaskAsync(string hostNameOrAddress, CancellationToken
return Task.Run(() => Run(hostNameOrAddress));
}

async public Task<PingResult> RunAsync(
public async Task<PingResult> RunAsync(
string hostNameOrAddress, CancellationToken cancellationToken = default)
{
return await Task.Run(() =>
Expand All @@ -44,7 +44,7 @@ async public Task<PingResult> RunAsync(
}, cancellationToken);
}

async public Task<PingResult> RunAsync(params string[] hostNameOrAddresses)
public async Task<PingResult> RunAsync(params string[] hostNameOrAddresses)
{
Task<PingResult>[] tasks = hostNameOrAddresses.Select((string x) => RunAsync(x)).ToArray();
await Task.WhenAll(tasks);
Expand Down

0 comments on commit 9686688

Please sign in to comment.