future

package
v0.3.37 Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Ctx

type Ctx interface {
	Cancel()

	WithCancel(parent context.Context) context.Context
	WithDeadline(parent context.Context, d time.Time) context.Context
	WithTimeout(parent context.Context, timeout time.Duration) context.Context
	// contains filtered or unexported methods
}

type Value

type Value interface {
	Err() error
	Error() string
	Get() interface{}
	Cancel()
	Wait(func(data interface{}) error) error
	// contains filtered or unexported methods
}

func Go

func Go(fn func(ctx1 Ctx) (interface{}, error)) Value

func Pipe

func Pipe(val Value, fn func(data interface{}) (interface{}, error)) Value

Jump to

Keyboard shortcuts

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