add BatchDispatcher
authorShubhanshu Agrawal <shubhanshu@fb.com>
Mon, 3 Oct 2016 19:13:32 +0000 (12:13 -0700)
committerFacebook Github Bot <facebook-github-bot-bot@fb.com>
Mon, 3 Oct 2016 19:23:49 +0000 (12:23 -0700)
commit52736dced685724c4a72bd60b6c879b30313e597
tree68654a42ecb601ca8717d0449a6e38ddf2bb8c37
parentbe4c6d6b3e21914df8a0207ef4f716a09a648745
add BatchDispatcher

Summary:
This diff adds BatchDispatcher, which can be used to batch values while performing IO.
This would be useful in writing single id code in node, and would be use to batch ids while doing IO at storage adapter.

Differential Revision: D3900404

fbshipit-source-id: f53aa352344ff55674c7544302b6a1b4726214b6
folly/Makefile.am
folly/fibers/BatchDispatcher.h [new file with mode: 0644]
folly/fibers/test/FibersTest.cpp