futures

package
v1.2.83 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Await added in v1.2.34

func Await(ctx context.Context, ff ...Future) (r []any)

func New

func New() (p Promise, f Future)

func ReleaseUnused added in v1.2.34

func ReleaseUnused(p Promise)

Types

type Future

type Future interface {
	Await(ctx context.Context) (result Result, err error)
}

type Promise

type Promise interface {
	Succeed(v any)
	Failed(err error)
	Close()
}

type Result

type Result interface {
	objects.Object
}

Jump to

Keyboard shortcuts

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