|
|
|
|
|
by jayd16
2217 days ago
|
|
Agreed. Await seems much nicer for the case of some sleep/wait causing subroutine that returns something. var foo = await bar();
vs c1 := make(chan float64, 1)
go bar(c1)
foo := <-c1
Sure you have to be in an async method to use await but its really not that bad if you embrace it.Go seems better suited for high throughput message passing. |
|