Skip to content

Commit 214fea1

Browse files
committed
tidying up
1 parent 3db2fbe commit 214fea1

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

src/PSParallelPipeline/PSOutputStreams.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ internal PSOutputStreams(Worker worker)
3333
SetStreamHandlers();
3434
}
3535

36-
internal void AddOutput(PSOutputData data) => OutputPipe.Add(data); //, Token);
36+
internal void AddOutput(PSOutputData data) => OutputPipe.Add(data);
3737

3838
private void SetStreamHandlers()
3939
{

src/PSParallelPipeline/RunspacePool.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ private async Task ProcessAnyAsync()
9898
internal CancellationTokenRegistration RegisterCancellation(Action callback) =>
9999
Token.Register(callback);
100100

101-
internal async Task WaitOnCancel() => await Task.WhenAll(_tasks);
101+
internal async Task WaitOnCancelAsync() => await Task.WhenAll(_tasks);
102102

103103
public void Dispose()
104104
{

src/PSParallelPipeline/Worker.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,14 +79,14 @@ private async Task Start()
7979
}
8080
catch
8181
{
82-
await _runspacePool.WaitOnCancel();
82+
await _runspacePool.WaitOnCancelAsync();
8383
}
8484
}
8585

8686
public void Dispose()
8787
{
88-
_inputQueue.Dispose();
8988
OutputStreams.Dispose();
89+
_inputQueue.Dispose();
9090
_cts.Dispose();
9191
_runspacePool.Dispose();
9292
GC.SuppressFinalize(this);

0 commit comments

Comments
 (0)