xprocess_abc

package
v0.1.11 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2021 License: MIT Imports: 1 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 {
	Yield(data interface{})                  // async
	YieldFn(val FutureValue, fn interface{}) // block
}

type FutureValue

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

type IPromise

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

type Value added in v0.1.3

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