Documentation
¶
Overview ¶
Package sync provides synchronization utilities
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var PromiseType = types.MakeBasic("promise")
Functions ¶
This section is empty.
Types ¶
type Action ¶
type Action func(func())
Action is a callback interface for eventually triggering some action
type Promise ¶
type Promise struct {
// contains filtered or unexported fields
}
A Promise represents a Value that will eventually be resolved
func NewPromise ¶
NewPromise instantiates a new Promise
func (*Promise) CheckArity ¶
func (*Promise) IsResolved ¶
Click to show internal directories.
Click to hide internal directories.