package promise

import "github.com/docker/docker/pkg/promise"

Index

Functions

func Go

func Go(f func() error) chan error

Go is a basic promise implementation: it wraps calls a function in a goroutine, and returns a channel which will later return the function's return value.

Source Files

promise.go

Version
v1.8.0-rc2
Published
Aug 4, 2015
Platform
js/wasm
Last checked
3 minutes ago

Tools for package owners.