Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Chan ¶
type Chan[T any] struct { // contains filtered or unexported fields }
Chan is a wrapper around a channel. Underlying chan must be accessed with ReceiveC method. If the Chan is suspended, ReceiveC will return nil which makes the receiver to block on the Chan.
func (*Chan[T]) ReceiveC ¶
func (c *Chan[T]) ReceiveC() chan T
ReceiveC returns the underlying channel for receiving values. If the channel is suspended, it returns nil.
func (*Chan[T]) Resume ¶
func (c *Chan[T]) Resume()
Resume the channel. Reverts previous suspend operation.
Click to show internal directories.
Click to hide internal directories.