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

Method Close

shared_buffer.go:79–82  ·  view source on GitHub ↗

Close shuts down the SharedBuffer. It is an error to call Close while channels are still using the buffer (I'm not really sure what would happen if you do so).

()

Source from the content-addressed store, hash-verified

77//Close shuts down the SharedBuffer. It is an error to call Close while channels are still using
78//the buffer (I'm not really sure what would happen if you do so).
79func (buf *SharedBuffer) Close() {
80 // TODO: what if there are still active channels using this buffer?
81 close(buf.in)
82}
83
84func (buf *SharedBuffer) mainLoop() {
85 for {

Callers 4

TestSharedBufferMultipleFunction · 0.95
ExampleSharedBufferFunction · 0.95

Calls

no outgoing calls

Tested by 4

TestSharedBufferMultipleFunction · 0.76
ExampleSharedBufferFunction · 0.76