Documentation ¶ Index ¶ func NewFuture() (Future, Settable) type Future type Settable Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func NewFuture ¶ func NewFuture() (Future, Settable) NewFuture creates a new Future and the Settable for setting its value Types ¶ type Future ¶ type Future interface { Get(ctx context.Context, valuePtr interface{}) error IsReady() bool } Future represents a value that will be available in the future type Settable ¶ type Settable interface { Set(interface{}, error) } Settable is for setting value and error for the corresponding Future The Set method can only be called once. Later calls will result in a panic since the value and error has already been set. Source Files ¶ View all Source files future.go Click to show internal directories. Click to hide internal directories.