test that the value remains alive even if the .then callback takes no arguments
authorChad Austin <chadaustin@fb.com>
Wed, 20 Dec 2017 21:37:15 +0000 (13:37 -0800)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Wed, 20 Dec 2017 21:45:21 +0000 (13:45 -0800)
commit9df5dacf85c3bfcb7db3b5a250c820fdca226d17
tree3a7303cf4981309e4e2a2ed27157cc149e7c831a
parent8091d7199edecafa678d009b82f04c36dd8ce9a7
test that the value remains alive even if the .then callback takes no arguments

Summary:
It was not clear to me, if a callback takes no arguments, the
underlying value is guaranteed to be alive during the execution of the
callback, so I wrote these tests.

Reviewed By: yfeldblum

Differential Revision: D6594921

fbshipit-source-id: 6a658afc1bf4d29eaa9c62269ddc21c7f897ad01
folly/futures/test/ThenTest.cpp