chanx

package
v0.0.0-...-f2d4f82 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2024 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsClosed

func IsClosed[T any](ch <-chan T) bool

IsClosed returns true if the channel is closed.

func TryClose

func TryClose[T any](ch chan T) (justClosed bool)

TryClose closes a channel and returns true if the channel is closed.

func TryReceive

func TryReceive[T any](ch <-chan T) (value T, closed bool)

TryReceive receives a value from a channel and returns true if the channel is closed.

func TrySend

func TrySend[T any](ch chan<- T, value T) (closed bool)

TrySend sends a value to a channel and returns true if the channel is closed.

Types

This section is empty.

Jump to

Keyboard shortcuts

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