summaryrefslogtreecommitdiffstats
path: root/async/src/async.h
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2015-04-28 09:46:28 +0200
committerChristian Mollekopf <chrigi_1@fastmail.fm>2015-04-28 09:46:28 +0200
commitde00fa24da6f5af70a8a8f95ab6d4f996ffeb6bb (patch)
treecd6e09dadb7d9849b071355f408686f8a33df1ba /async/src/async.h
parent3012dc36bbc40e6f8c07a6af7b2fba9d6c826399 (diff)
downloadsink-de00fa24da6f5af70a8a8f95ab6d4f996ffeb6bb.tar.gz
sink-de00fa24da6f5af70a8a8f95ab6d4f996ffeb6bb.zip
Async::wait
Useful in i.e. loops that have to wait a bit before every execution.
Diffstat (limited to 'async/src/async.h')
-rw-r--r--async/src/async.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/async/src/async.h b/async/src/async.h
index 18b5979..b1f1121 100644
--- a/async/src/async.h
+++ b/async/src/async.h
@@ -285,6 +285,11 @@ template<typename Out>
285Job<Out> iterate(const Out &container); 285Job<Out> iterate(const Out &container);
286 286
287/** 287/**
288 * Async delay.
289 */
290Job<void> wait(int delay);
291
292/**
288 * A null job. 293 * A null job.
289 * 294 *
290 * An async noop. 295 * An async noop.