Tao Wen преди 7 години
родител
ревизия
0955f3f7ce
променени са 1 файла, в които са добавени 2 реда и са изтрити 2 реда
  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()