package promise

import "github.com/containers/storage/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.58.0 (latest)
Published
Apr 15, 2025
Platform
linux/amd64
Last checked
3 weeks ago

Tools for package owners.