MCPcopy Create free account
hub / github.com/eapache/channels / WeakTee

Function WeakTee

channels.go:215–220  ·  view source on GitHub ↗

WeakTee behaves like Tee (duplicating a single input into multiple outputs) except that it does not close the output channels when the input channel is closed.

(input SimpleOutChannel, outputs ...SimpleInChannel)

Source from the content-addressed store, hash-verified

213// WeakTee behaves like Tee (duplicating a single input into multiple outputs) except that it does not close
214// the output channels when the input channel is closed.
215func WeakTee(input SimpleOutChannel, outputs ...SimpleInChannel) {
216 if len(outputs) == 0 {
217 panic("channels: WeakTee requires at least one output")
218 }
219 go tee(input, outputs, false)
220}
221
222// WeakDistribute behaves like Distribute (distributing a single input amongst multiple outputs) except that
223// it does not close the output channels when the input channel is closed.

Callers

nothing calls this directly

Calls 1

teeFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…