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.
| 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. |
| 69 | type DeadChannel struct{} |
| 70 | |
| 71 | func NewDeadChannel() DeadChannel { |
| 72 | return DeadChannel{} |
nothing calls this directly
no outgoing calls
no test coverage detected