Future API for CacheClientCommon
authorAndrii Grynenko <andrii@fb.com>
Wed, 23 Apr 2014 02:58:46 +0000 (19:58 -0700)
committerDave Watson <davejwatson@fb.com>
Tue, 20 May 2014 19:53:47 +0000 (12:53 -0700)
commitb7ccdf65e931201fd160327976c8ec42b5a6c5b3
treedeb2df2c02f17e87752c8d21866b601470dcb7f3
parentdea4e16698c91af1fd112352400017048778fbfd
Future API for CacheClientCommon

Summary:
Allow mutable functors in Promise::fulfil.

Facebook:
Works both with EventBase and without it (thanks to wangle::Future thread-safety). CacheClientImpl lifetime is guaranteed using shared_ptr.

Test Plan: unit test

Reviewed By: stepan@fb.com

FB internal diff: D1291024
folly/wangle/Promise-inl.h
folly/wangle/Promise.h