有没有办法检测 go 例程在执行时是否被中断?我想要类似于InterruptedExceptionJava的东西: https ://docs.oracle.com/javase/8/docs/api/java/lang/InterruptedException.html
InterruptedException
concurrency interrupt go interrupted-exception goroutine
concurrency ×1
go ×1
goroutine ×1
interrupt ×1
interrupted-exception ×1