Commit 5a331752 authored by Vladimir Barsukov's avatar Vladimir Barsukov
Browse files

add MustJob

parent 287a9acb
...@@ -126,6 +126,11 @@ func (q *ZQ) AddJobForce(a any) error { ...@@ -126,6 +126,11 @@ func (q *ZQ) AddJobForce(a any) error {
return nil return nil
} }
func (q *ZQ) MustJob(a any) {
q.ZQuit.Inc()
q.Jobs <- a
}
func (q *ZQ) Wait() { func (q *ZQ) Wait() {
q.ZQuit.Wait() q.ZQuit.Wait()
} }
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment