MCPcopy
hub / github.com/chrislusf/glow / InputChan

Method InputChan

flow/step_task.go:58–63  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

56}
57
58func (t *Task) InputChan() chan reflect.Value {
59 if len(t.InputChans) != 1 {
60 log.Panicf("This should not happen! task %s input should be only one instead of %d", t.Name(), len(t.InputChans))
61 }
62 return t.InputChans[0]
63}
64
65func (t *Task) AddInputChan(ch chan reflect.Value) {
66 t.InputChans = append(t.InputChans, ch)

Callers 6

LocalReduceMethod · 0.80
LocalReduceByKeyMethod · 0.80
partition_scatterMethod · 0.80
MapMethod · 0.80
FilterMethod · 0.80
LocalSortMethod · 0.80

Calls 1

NameMethod · 0.95

Tested by

no test coverage detected