future

package
v0.0.0-...-dff417c Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2019 License: Apache-2.0 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 interface {
	Value() (Value, error)
	CancellableValue(context.Context) (Value, error)
	Then(func(Value) (Value, error)) Future
	OnSuccess(func(Value)) Future
	OnFailure(func(error)) Future
}

func MakeFuture

func MakeFuture(producer func() (Value, error)) Future

func MakeValue

func MakeValue(value Value, err error) Future

type Value

type Value = interface{}

Jump to

Keyboard shortcuts

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