Saturday, November 22, 2014 Futures in Go Futures in Go The Problem You have a function that returns an error, you want to run it in a goroutine. How to retrieve the error? The Solution I’ll take the example of Docker utils package: (from master on 08/06/2014) https://github.com/docker/docker/blob/66c8f87e89ba0dd824cf640a159210fbbb8019ec/utils/utils.go#L40 func Go(f func() error) chan error { ch
![Guillaume's Thoughts: Futures in Go](https://cdn-ak-scissors.b.st-hatena.com/image/square/5e49468962e1accc2ab52f5de584e2e3a268d7f9/height=288;version=1;width=512/http%3A%2F%2F3.bp.blogspot.com%2F-ZQpkqLLNrY4%2FVFAAc-x9_hI%2FAAAAAAAAAVU%2FHM2U-P26bzo%2Fs1600%2Flogo.test.png)