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

Struct DeadChannel

native_channel.go:69–69  ·  view source on GitHub ↗

DeadChannel is a placeholder implementation of the Channel interface with no buffer that is never ready for reading or writing. Closing a dead channel is a no-op. Behaves almost like NativeChannel(nil) except that closing a nil NativeChannel will panic.

Source from the content-addressed store, hash-verified

67// that is never ready for reading or writing. Closing a dead channel is a no-op.
68// Behaves almost like NativeChannel(nil) except that closing a nil NativeChannel will panic.
69type DeadChannel struct{}
70
71func NewDeadChannel() DeadChannel {
72 return DeadChannel{}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected