Commit e53f6d70 authored by Vladimir Barsukov's avatar Vladimir Barsukov
Browse files

zgo

parent c9d8bb0c
...@@ -72,6 +72,13 @@ func (q *ZQ) AddJob(a any) *ZQ { ...@@ -72,6 +72,13 @@ func (q *ZQ) AddJob(a any) *ZQ {
return q return q
} }
func (q *ZQ) AddJobSync(a any) *ZQ {
q.JobsWg.Inc()
q.jobs <- a
return q
}
func (q *ZQ) Wait() { func (q *ZQ) Wait() {
q.JobsWg.Wait() q.JobsWg.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