casm

package
v0.1.0-alpha.1 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2023 License: Apache-2.0, 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 Future

type Future struct{ *capnp.Future }

func (Future) Await

func (f Future) Await(ctx context.Context) error

func (Future) Err

func (f Future) Err() error

type Iterator

type Iterator[T any] struct {
	Seq interface {
		Next() (T, bool)
	}

	Future interface {
		Done() <-chan struct{}
		Err() error
	}
}

func (Iterator[T]) Err

func (it Iterator[T]) Err() (err error)

Err returns returns the first error encountered while iterating over the stream. Callers SHOULD call Err() after the iterator has become exhausted, and handle any errors.

func (Iterator[T]) Next

func (it Iterator[T]) Next() (t T, ok bool)

Jump to

Keyboard shortcuts

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