adding Promise::await
authorShubhanshu Agrawal <shubhanshu@fb.com>
Thu, 19 May 2016 03:42:24 +0000 (20:42 -0700)
committerFacebook Github Bot 9 <facebook-github-bot-9-bot@fb.com>
Thu, 19 May 2016 03:53:23 +0000 (20:53 -0700)
commit6698301ad7165dd89f36a5c3f5432104539be08d
treebdac11e52e61c617a256af2fb099eac1e80c4665
parent75f97748ba727ad5762910e10939632f4ad4990b
adding Promise::await

Summary:
This diff adds a static await method to Promise.
Also after this, folly::fibers::await is just a wrapper around Promise::await.
This also removes the friend relationship between Promise and await.

This would be helpful in making the folly::fibers::await templated by Baton changes easier to make.

Reviewed By: andriigrynenko

Differential Revision: D3314891

fbshipit-source-id: 361546c078caafd067734d2f474c617d7fb888b0
folly/experimental/fibers/FiberManager-inl.h
folly/experimental/fibers/Promise-inl.h
folly/experimental/fibers/Promise.h