Documentation ¶
Overview ¶
Package chanit allows for native Go channels to be used with iterators.
Iterator functions:
- In - yields items retrieved from a native Go channel
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ChannelIterator ¶
type ChannelIterator[T any] struct { // contains filtered or unexported fields }
ChannelIterator represents an iterator which yields items retrieved from a Go channel until the channel is closed.
func (*ChannelIterator[T]) Next ¶
func (it *ChannelIterator[T]) Next() (ok bool)
func (*ChannelIterator[T]) Value ¶
func (it *ChannelIterator[T]) Value() T
Click to show internal directories.
Click to hide internal directories.