summaryrefslogtreecommitdiffstats
path: root/async/src/async_impl.h
diff options
context:
space:
mode:
authorDan Vrátil <dvratil@redhat.com>2015-02-08 12:02:04 +0100
committerDan Vrátil <dvratil@redhat.com>2015-02-09 14:33:45 +0100
commitadc6a443776820b5ae36c982baf92b1d29bbaa4b (patch)
treeed278ffbcd8fc8c3759fbcc4afd4240fc1a72fc3 /async/src/async_impl.h
parentcbb192ffe865ffb3eed4c940177ffecaecfa570f (diff)
downloadsink-adc6a443776820b5ae36c982baf92b1d29bbaa4b.tar.gz
sink-adc6a443776820b5ae36c982baf92b1d29bbaa4b.zip
Async: introduce sync executors
Sync executors don't pass Async::Future into the user-provided tasks, but instead work with return values of the task methods, wrapping them into the Async::Future internally. Sync tasks are of course possible since forever, but not the API for those tasks is much cleaner, for users don't have to deal with "future" in synchronous tasks, for instance when synchronously processing results of an async task before passing the data to another async task.
Diffstat (limited to 'async/src/async_impl.h')
0 files changed, 0 insertions, 0 deletions