You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: parallel/fanout.go
+4-3Lines changed: 4 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,7 @@
1
1
package parallel
2
2
3
3
import (
4
+
"context"
4
5
"sync"
5
6
6
7
pipeline "github.com/ccremer/go-command-pipeline"
@@ -11,12 +12,12 @@ NewFanOutStep creates a pipeline step that runs nested pipelines in their own Go
11
12
The function provided as PipelineSupplier is expected to close the given channel when no more pipelines should be executed, otherwise this step blocks forever.
12
13
The step waits until all pipelines are finished.
13
14
If the given ResultHandler is non-nil it will be called after all pipelines were run, otherwise the step is considered successful.
14
-
The given pipelines have to define their own pipeline.Context, it's not passed "down" from parent pipeline.
15
-
However, The pipeline.Context for the ResultHandler will be the one from parent pipeline.
15
+
The given pipelines have to define their own context.Context, it's not passed "down" from parent pipeline.
16
+
However, The context.Context for the ResultHandler will be the one from parent pipeline.
0 commit comments