promise

package
v1.7.13 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2024 License: Apache-2.0 Imports: 2 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FanResult

type FanResult struct {
	Result interface{}
	Err    error
}

type Future

type Future struct {
	// contains filtered or unexported fields
}

func FanIn

func FanIn(futures ...*Future) *Future

func NewFuture

func NewFuture() *Future

func (*Future) FanInGet

func (f *Future) FanInGet() ([]*FanResult, error)

func (*Future) Get

func (f *Future) Get() (interface{}, error)

func (*Future) Set

func (f *Future) Set(v interface{}, err error)

Jump to

Keyboard shortcuts

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