Skip to content

Commit

Permalink
update README
Browse files Browse the repository at this point in the history
  • Loading branch information
liujianping committed Feb 19, 2020
1 parent edc5d12 commit 626d8be
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion README.md
Expand Up @@ -74,7 +74,9 @@ func main(){
routine.Go(routine.ExecutorFunc(ChildGo)),
routine.Go(routine.ExecutorFunc(ChildGo)),
//signals
routine.Interrupts(routine.DefaultCancelInterruptors...),
routine.Signal(syscall.SIGINT, routine.SigHandler(func() {
os.Exit(1)
})),
),
)
}
Expand Down

0 comments on commit 626d8be

Please sign in to comment.