3 ms·
Disclaimer: I have not used golang, so i might be wrong. as per my understanding, golang has it implicit. Like there is no way for a developer to tell if code
by rk06 1y ago
Disclaimer: I have not used golang, so i might be wrong.
as per my understanding, golang has it implicit. Like there is no way for a developer to tell if code will run under async context or not.
- throwawaymaths 1y agono, in golang (and erlang) every function is async, and there are implicit yield points in "well-known" places. for erlang it's every function call boundary, for golang its the end of functions. in the past this was a problem for go because a for (ever) loop could block your cpu process. not a problem for erlang since all forever loops must be tco function calls (inducing a yield at each interation)