Documentation ¶
Index ¶
- Variables
- func Await[T any](ch <-chan Option[T]) (value T, err error)
- func AwaitContext[T any](ctx context.Context, ch <-chan Option[T]) (value T, err error)
- func Go[T any](f Func[T], capacity ...int) <-chan Option[T]
- func Group[T any](g func(i int) Func[T], n int, capacity ...int) <-chan Option[T]
- type Func
- type Option
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrChannelClosed = errors.New("channel is closed")
Functions ¶
func AwaitContext ¶ added in v1.1.0
AwaitContext reads channel ch and unwraps option to value and error. Can be interrupted by closed context.
Types ¶
Click to show internal directories.
Click to hide internal directories.