Tao Wen %!s(int64=7) %!d(string=hai) anos
pai
achega
0955f3f7ce
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      unbounded_executor.go

+ 2 - 2
unbounded_executor.go

@@ -78,13 +78,13 @@ func (executor *UnboundedExecutor) Stop() {
 	executor.cancel()
 }
 
-// Stop cancel all goroutines started by this executor and
+// StopAndWaitForever cancel all goroutines started by this executor and
 // wait until all goroutines exited
 func (executor *UnboundedExecutor) StopAndWaitForever() {
 	executor.StopAndWait(context.Background())
 }
 
-// Stop cancel all goroutines started by this executor and wait.
+// StopAndWait cancel all goroutines started by this executor and wait.
 // Wait can be cancelled by the context passed in.
 func (executor *UnboundedExecutor) StopAndWait(ctx context.Context) {
 	executor.cancel()