qchan

package
v0.0.0-...-4155a33 Latest Latest
Warning

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

Go to latest
Published: May 26, 2020 License: MIT Imports: 5 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Timeout

func Timeout(channel interface{}, timeout time.Duration) (chosen int, recv reflect.Value, recvok bool)

func Timeouts

func Timeouts(channels []interface{}, timeout time.Duration) (chosen int, recv reflect.Value, recvok bool)

func Wait

func Wait(timeout time.Duration, stacktrace bool,
	routine func() (interface{}, error), finally func(interface{}, error, bool)) (interface{}, *qerr.StackCut, error)

Types

type Result

type Result struct {
	Value     interface{}
	Error     error
	Timeouted bool
	Cut       *qerr.StackCut
}

Jump to

Keyboard shortcuts

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