iter

package module
v0.0.0-...-255af75 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 18, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Iter

type Iter[T any] struct {
	// contains filtered or unexported fields
}

func New

func New[T any](ctx context.Context, cap int) *Iter[T]

func (*Iter[T]) Add

func (i *Iter[T]) Add(t T) error

func (*Iter[T]) Close

func (i *Iter[T]) Close() error

func (*Iter[T]) Ctx

func (i *Iter[T]) Ctx() context.Context

func (*Iter[T]) Get

func (i *Iter[T]) Get() (t T, _ error)

func (*Iter[T]) GetCtx

func (i *Iter[T]) GetCtx(ctx context.Context) (t T, _ error)

func (*Iter[T]) GetDeadline

func (i *Iter[T]) GetDeadline(deadline time.Time) (t T, _ error)

func (*Iter[T]) GetTimeout

func (i *Iter[T]) GetTimeout(timeout time.Duration) (t T, _ error)

func (*Iter[T]) IsClosed

func (i *Iter[T]) IsClosed() bool

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL