diff options
Diffstat (limited to 'src/util')
| -rw-r--r-- | src/util/eventbox.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/util/eventbox.go b/src/util/eventbox.go index e16b736b..ccdbb99e 100644 --- a/src/util/eventbox.go +++ b/src/util/eventbox.go @@ -79,6 +79,7 @@ func (b *EventBox) Unwatch(events ...EventType) { } } +// WaitFor blocks the execution until the event is received func (b *EventBox) WaitFor(event EventType) { looping := true for looping { |
