Skip to content

Commit

Permalink
Update cogroup.go
Browse files Browse the repository at this point in the history
  • Loading branch information
devfans authored Jan 30, 2021
1 parent 583b95b commit 948be31
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions cogroup.go
Original file line number Diff line number Diff line change
@@ -1,11 +1,17 @@
// Package cogroup provides a elegant goroutine group with context controls. It's designed to meet the following requirements.
//
// - Tasks can be executed with order
//
// - Group `wait` command will close the write acces to the task queue
//
// - Upstream context can cancel the task queue
//
// - When the context is canceled, the tasks in queue will be no longer consumed
//
// - Panic recover for a single task execution
//
// - Only spawn specified number of goroutines to consume the task
//
// - `Wait` will return block until tasks are finished or canceled, and return with the queue length
//
package cogroup
Expand Down

0 comments on commit 948be31

Please sign in to comment.