abc

package
v0.3.27 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2021 License: MIT Imports: 2 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cancel

type Cancel struct {
	Cancel context.CancelFunc
	Err    error
}

func (Cancel) Error

func (t Cancel) Error() string

type Future

type Future interface {
	Yield(data interface{})                  // async
	YieldFn(val FutureValue, fn interface{}) // block
}

type FutureValue

type FutureValue interface {
	Expect(format string, a ...interface{})
	Err() error
	String() string
	Raw() []reflect.Value
	Value(fn interface{}) error
}

type IPromise

type IPromise interface {
	Await() chan FutureValue
	Map(fn interface{}) Value
}

type Value

type Value interface {
	Assert(format string, a ...interface{})
	Err() error
	Value() interface{}
}

Jump to

Keyboard shortcuts

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