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

Function ExampleChannel

channels_test.go:253–265  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

251}
252
253func ExampleChannel() {
254 var ch Channel
255
256 ch = NewInfiniteChannel()
257
258 for i := 0; i < 10; i++ {
259 ch.In() <- nil
260 }
261
262 for i := 0; i < 10; i++ {
263 <-ch.Out()
264 }
265}

Callers

nothing calls this directly

Calls 3

NewInfiniteChannelFunction · 0.85
InMethod · 0.65
OutMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…