safe_channel

package
v1.3.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 19, 2026 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SafeCh

type SafeCh[T any] struct {
	// contains filtered or unexported fields
}

func NewSafeCh

func NewSafeCh[T any](size int) *SafeCh[T]

func (*SafeCh[T]) Close

func (c *SafeCh[T]) Close()

func (*SafeCh[T]) GetRcvChan

func (c *SafeCh[T]) GetRcvChan() <-chan T

func (*SafeCh[T]) IsClosed

func (c *SafeCh[T]) IsClosed() bool

func (*SafeCh[T]) Send

func (c *SafeCh[T]) Send(e T)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL