rrader
02/10/2017, 8:58 AMasync
should return Coroutine
classelizarov
02/10/2017, 9:06 AMasync
returns an object also known (in computer science) as a future or a promise: https://en.wikipedia.org/wiki/Futures_and_promisesCoroutine
the result of launch
function, but we don’t need any extra functions on it beyond those that are already provided by a Job
.rrader
02/10/2017, 9:15 AMDeferred
also seems incorrect, because it means it will run laterAsyncSubroutine
hackerham
02/10/2017, 9:20 AMelizarov
02/10/2017, 9:21 AMasync
result in other languages: C# calls it Task
, JS calls it Promise
, Dart calls it Future
.rrader
02/10/2017, 9:37 AMdefer
https://tour.golang.org/flowcontrol/12elizarov
02/10/2017, 10:42 AMdefer
is a misnomer. We cannot help that.