package
Version:
v0.0.0-...-f2d4f82
Opens a new window with list of versions in this module.
Published: Oct 28, 2024
License: Apache-2.0
Opens a new window with license information.
Imports: 0
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
func IsClosed[T any](ch <-chan T) bool
IsClosed returns true if the channel is closed.
func TryClose[T any](ch chan T) (justClosed bool)
TryClose closes a channel and returns true if the channel is closed.
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[T any](ch chan<- T, value T) (closed bool)
TrySend sends a value to a channel and returns true if the channel is closed.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.