Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Vladimir Barsukov
zGo
Commits
5a331752
Commit
5a331752
authored
Dec 11, 2023
by
Vladimir Barsukov
Browse files
add MustJob
parent
287a9acb
Changes
1
Hide whitespace changes
Inline
Side-by-side
zq/zq.go
View file @
5a331752
...
...
@@ -126,6 +126,11 @@ func (q *ZQ) AddJobForce(a any) error {
return
nil
}
func
(
q
*
ZQ
)
MustJob
(
a
any
)
{
q
.
ZQuit
.
Inc
()
q
.
Jobs
<-
a
}
func
(
q
*
ZQ
)
Wait
()
{
q
.
ZQuit
.
Wait
()
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment