A simple implementation of futures in go