Skip to content

Commit 6fecbc1

Browse files
authored
docs: Update Wait() usage in the README. (#23)
1 parent 5dae54b commit 6fecbc1

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,9 @@ func main() {
198198
}
199199

200200
// Wait until all tasks are completed
201-
cm.Wait()
201+
if err := cm.Wait(ctx); err != nil {
202+
t.Fatalf("ConMan Wait returned an unexpected error: %v", err)
203+
}
202204

203205
// Check if there were any errors
204206
if errs := cm.Errors(); len(errs) > 0 {

0 commit comments

Comments
 (0)