Closed as not planned
Description
What version of Go are you using (go version
)?
$ go version go version go1.13.6 windows/amd64
Does this issue reproduce with the latest release?
yes
What operating system and processor architecture are you using (go env
)?
go env
Output
$ go env set GO111MODULE= set GOARCH=amd64 set GOBIN= set GOCACHE=C:\Users\henrycjchen\AppData\Local\go-build set GOENV=C:\Users\henrycjchen\AppData\Roaming\go\env set GOEXE=.exe set GOFLAGS= set GOHOSTARCH=amd64 set GOHOSTOS=windows set GONOPROXY= set GONOSUMDB= set GOOS=windows set GOPATH=C:\Users\henrycjchen\go set GOPRIVATE= set GOPROXY=direct set GOROOT=c:\go set GOSUMDB=off set GOTMPDIR= set GOTOOLDIR=c:\go\pkg\tool\windows_amd64 set GCCGO=gccgo set AR=ar set CC=gcc set CXX=g++ set CGO_ENABLED=1 set GOMOD= set CGO_CFLAGS=-g -O2 set CGO_CPPFLAGS= set CGO_CXXFLAGS=-g -O2 set CGO_FFLAGS=-g -O2 set CGO_LDFLAGS=-g -O2 set PKG_CONFIG=pkg-config set GOGCCFLAGS=-m64 -mthreads -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=C:\Users\HENRYC~1\AppData\Local\Temp\go-build068436734=/tmp/go-build -gno-record-gcc-switches
What did you do?
we all know that use goroutine without a recover, the go program may cause a crash
What did you expect to see?
I expect that errgroup can recover the fn's error silently.
What is the reason not to do so? Is recover may decrease the performance of the program?
What did you see instead?
I should add defer func(){recover()}()
inside the go func every time I use errgroup