Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Chan ¶
type Chan[T any] <-chan T
Chan is a channel with utility methods.
func (Chan[T]) Recv ¶
Recv will try to receive a value from the channel, same as <-c. If the context is canceled before a value is received, it will return the context error.
func (Chan[T]) RecvTimeout ¶
RecvTimeout will try to receive a value from the channel, same as <-c. If the context is canceled before a values is received or the timeout is reached, it will return the context error.
Click to show internal directories.
Click to hide internal directories.