Fork me on GitHub
Robert Nikander18:04:28

I'm looking for something like setImmediate or nextTick, in the browser JS environment -- a way to say "run this when the current event is finished processing". setTimeout(f, 0) is too slow. Does (go ...) do this?


yes it does, and you can also call goog.async.nextTick directly


If you want nexttick I would call nexttick, I forget if they do but go blocks may execute now up until the first parking op