Skip to content

Commit

Permalink
Merge pull request #3 from dl1998/wait-missing-docstring
Browse files Browse the repository at this point in the history
Add missing docstring
  • Loading branch information
dl1998 authored Feb 24, 2024
2 parents 2f8e6b7 + 4be3aab commit 6b6bd66
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/scheduler/scheduler.go
Original file line number Diff line number Diff line change
Expand Up @@ -250,6 +250,7 @@ func (task *Task) RemoveFromContext(name string) {
delete(task.context, name)
}

// Wait waits until task will be completed, either by timer or stop signal, whichever happens first.
func (task *Task) Wait() {
if task.stopSignal != nil {
<-task.stopSignal
Expand Down

0 comments on commit 6b6bd66

Please sign in to comment.