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

Function WeakPipe

channels.go:200–202  ·  view source on GitHub ↗

WeakPipe behaves like Pipe (connecting the two channels) except that it does not close the output channel when the input channel is closed.

(input SimpleOutChannel, output SimpleInChannel)

Source from the content-addressed store, hash-verified

198// WeakPipe behaves like Pipe (connecting the two channels) except that it does not close
199// the output channel when the input channel is closed.
200func WeakPipe(input SimpleOutChannel, output SimpleInChannel) {
201 go pipe(input, output, false)
202}
203
204// WeakMultiplex behaves like Multiplex (multiplexing multiple inputs into a single output) except that it does not close
205// the output channel when the input channels are closed.

Callers 1

TestWeakPipeFunction · 0.85

Calls 1

pipeFunction · 0.85

Tested by 1

TestWeakPipeFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…