Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SafeChannel ¶
type SafeChannel[T any] struct { // contains filtered or unexported fields }
func (*SafeChannel[T]) Close ¶
func (c *SafeChannel[T]) Close()
func (*SafeChannel[T]) Read ¶
func (c *SafeChannel[T]) Read() <-chan T
func (*SafeChannel[T]) TryWrite ¶ added in v1.8.24
func (c *SafeChannel[T]) TryWrite(data T) (bool, error)
func (*SafeChannel[T]) Write ¶
func (c *SafeChannel[T]) Write(data T) error
Click to show internal directories.
Click to hide internal directories.