Hacker News new | ask | show | jobs
by dragonwriter 4712 days ago
> I haven't yet tried Go, but I don't see how it could match the performance of C# API with a single function. C#'s async methods offload any IO to the process IO completion port threads, thus freeing the current thread to do more work.

Go generally uses synchronous functions, but a function in Go can be the subject of a "go" statement (sharing the name of the language should give an importance of how central this feature is), which causes the function to be executed as a goroutine (that is, asynchronously using an M:N threading model.)

1 comments

You meant to reply to test-it, but instead it looks like you're teaching a member of the Go team how Go works.