Hacker News new | ask | show | jobs
Show HN: async – Async/Await Lib in Golang (github.com)
3 points by sun0day 1420 days ago
2 comments

I really like the way GoLang handles concurrency. Sometimes it might be a bit verbose to create wait groups and whatnot but I think it makes it pretty readable.

Is there any reason people prefer the async/await primitives?

Async/Await makes your asynchronous code runs like synchronous code, synchronous code is more readable than asynchronous code. Your dont have to worry about goroutines execution order, communication, exceptions(leak, panic, deadlock). Besides, Async/Await can help your write less code.
async is a ES7-style async/await implementation lib based on Goroutine + Channel in Golang. It now contains 4 APIs: Async, Await, All, Race.

Relative article -> https://hackernoon.com/u/sun0day