async

package
v0.30.60 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2023 License: Apache-2.0 Imports: 4 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 {
	On State
	V  interface{}
	// contains filtered or unexported fields
}

func NewFuture

func NewFuture(ch findy.Channel) *Future

NewFuture changes the existing findy.Channel to a Future.

func (*Future) Bytes

func (f *Future) Bytes() (b []byte)

func (*Future) Int

func (f *Future) Int() (i int)

func (*Future) IsEmpty

func (f *Future) IsEmpty() bool

func (*Future) Result

func (f *Future) Result() (dtoResult *indyDto.Result)

func (*Future) SetChan

func (f *Future) SetChan(ch findy.Channel)

SetChan sets the existing findy.Channel to this Future.

func (*Future) Str1

func (f *Future) Str1() string

func (*Future) Str2

func (f *Future) Str2() string

func (*Future) Strs

func (f *Future) Strs() (s1, s2, s3 string)

type State

type State uint32
const (
	Consumed State
)

Jump to

Keyboard shortcuts

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