SharedPromise
authorJames Sedgwick <jsedgwick@fb.com>
Tue, 12 May 2015 15:14:47 +0000 (08:14 -0700)
committerViswanath Sivakumar <viswanath@fb.com>
Wed, 20 May 2015 17:56:55 +0000 (10:56 -0700)
commitc5dabddc2f804c33dfeb7e248d697bf69f6c90cf
tree4228376b05147550959538734340df0d3660b810
parentf099d2b48d75cb98f21e62b5dfca344c96588ffe
SharedPromise

Summary: I tried two "smart" ways (deriving from Promise, encapsulating a Promise) and got nothing but trouble. The KISS principle is applied with gusto in this diff.

Test Plan: unit, integrating in 3+ places in separate diffs

Reviewed By: hans@fb.com

Subscribers: craffert, trunkagent, fugalh, folly-diffs@, jsedgwick, yfeldblum, chalfant

FB internal diff: D2035528

Signature: t1:2035528:1431393438:4e554cd30fa531d75b9267dccaade6dc516f2b15
folly/Makefile.am
folly/futures/Promise-inl.h
folly/futures/Promise.h
folly/futures/SharedPromise-inl.h [new file with mode: 0644]
folly/futures/SharedPromise.h [new file with mode: 0644]
folly/futures/Try-inl.h
folly/futures/Try.h
folly/futures/test/SharedPromiseTest.cpp [new file with mode: 0644]
folly/futures/test/Try.cpp
folly/wangle/channel/OutputBufferingHandler.h