futures

package
v1.2.13 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2023 License: Apache-2.0 Imports: 4 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New() (p Promise, f Future)

func Release

func Release(p Promise, _ Future)

Types

type Future

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

type Promise

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

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