On Tue, Oct 10, 2017 at 6:27 AM, Shawn Milochik <shawn.m...@gmail.com> wrote: > On Tue, Oct 10, 2017 at 9:13 AM, Scott Cotton <w...@iri-labs.com> wrote: >> >> Hi all, >> >> 1. "defer go" extend defers to work on goroutine exit with mechanism >> just like defer, but if we say "defer go f()" >> instead of "defer f()" then we run on goroutine exit. Very big gains for >> scaling here IMHO. >> > > You can already "defer go": defer func() { go otherFunc() }()
I believe the suggestion was that for `defer go` the deferred function runs on goroutine exit, not on function exit. I don't understand why we would want that, but it's not the same as what you suggest. Or perhaps I simply misunderstand. Ian -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.