The highest tagged major version is
v2.
package
Version:
v1.0.0
Opens a new window with list of versions in this module.
Published: Mar 5, 2024
License: MIT
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
WithBuffer sets the buffer size of the channel.
type Channel[T any] struct {
}
Channel provides methods for safely reading from and writing to channels.
Closes the channel. If the channel is already closed, then this is a no-op.
func (c *Channel[T]) Recv() <-chan T
Recv returns a read-only channel.
Sends a value to the channel. If the channel is closed, then this is a no-op.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.