summaryrefslogtreecommitdiff
path: root/src/util
diff options
context:
space:
mode:
authorJunegunn Choi <junegunn.c@gmail.com>2015-03-22 16:05:54 +0900
committerJunegunn Choi <junegunn.c@gmail.com>2015-03-22 16:05:54 +0900
commitb431e227da318931a4e7458f3cc07616c6b74ea4 (patch)
tree78ea8c61a8399f27f268c58346cf1a5c97b5eed9 /src/util
parentd94dfe087694d68073f01a51c7357fc4741641d8 (diff)
downloadfzf-b431e227da318931a4e7458f3cc07616c6b74ea4.tar.gz
Code cleanup
Diffstat (limited to 'src/util')
-rw-r--r--src/util/eventbox.go1
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 {