From 82df63b6ed635c49d698e04188cde686212d951a Mon Sep 17 00:00:00 2001 From: wangoo Date: Wed, 12 Jan 2022 16:35:51 +0800 Subject: [PATCH] update readme --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 65ebdc9..ea2776a 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ -gstop - stop goroutines/tasks securely, recursively. +grunner - run/stop goroutines/tasks securely, recursively. ```go -s1 := gstop.New() +s1 := grunner.New() s1.Defer(func() { fmt.Println("s1 stopped 2") @@ -57,4 +57,4 @@ time.Sleep(time.Millisecond * 10) // s1 stopped 2 // s3 stopped // s2 stopped -``` \ No newline at end of file +```