Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
devfans authored Feb 1, 2021
1 parent 944a24e commit 6e2d46b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,10 @@ import (
)
func main() {
f := func(context.Context) error {
f := func(ctx context.Context) error {
<-time.After(time.Second)
workerId := cogroup.GetWorkerId(ctx)
println(workerId, " did one task")
return nil
}
Expand Down

0 comments on commit 6e2d46b

Please sign in to comment.