Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var BackgroundContext = context.Background()
use internally for iterations we know are cannot block. USE WITH CAUTION
Functions ¶
Types ¶
type ChannelIterImpl ¶
type ChannelIterImpl[T any] struct { Pipe <-chan T Error error Ctx context.Context Closer context.CancelFunc // contains filtered or unexported fields }
func (*ChannelIterImpl[T]) Close ¶
func (iter *ChannelIterImpl[T]) Close() error
func (*ChannelIterImpl[T]) Value ¶
func (iter *ChannelIterImpl[T]) Value() T
type MapIterImpl ¶
type MapIterImpl[T any] struct { ChannelIterImpl[T] WG sync.WaitGroup }
func (*MapIterImpl[T]) Close ¶
func (iter *MapIterImpl[T]) Close() error
type MergedError ¶ added in v0.6.1
func (*MergedError) As ¶ added in v0.6.1
func (dwe *MergedError) As(target any) bool
func (*MergedError) Error ¶ added in v0.6.1
func (dwe *MergedError) Error() string
func (*MergedError) Is ¶ added in v0.6.1
func (dwe *MergedError) Is(target error) bool
func (*MergedError) Unwrap ¶ added in v0.6.1
func (dwe *MergedError) Unwrap() error
type SliceIterImpl ¶
func NewSliceIter ¶ added in v0.6.3
func NewSliceIter[T any](in []T) *SliceIterImpl[T]
func (*SliceIterImpl[T]) Close ¶
func (iter *SliceIterImpl[T]) Close() error
func (*SliceIterImpl[T]) Value ¶
func (iter *SliceIterImpl[T]) Value() T
Click to show internal directories.
Click to hide internal directories.