future.then() is identical to future.unit()
authorStiopa Koltsov <nga@fb.com>
Fri, 6 Oct 2017 20:07:02 +0000 (13:07 -0700)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Fri, 6 Oct 2017 20:26:14 +0000 (13:26 -0700)
commit05ced584576f60a3d8f3565d15906ad872fdb979
tree8db7eb4168df1adf0f300d511163b7802d868168
parent6a1cf45e75937ac4ab2b714556cc62fb8d788811
future.then() is identical to future.unit()

Summary:
Document that `future.then()` is identical to `future.unit()`.

Put functions next to each other to make it clear, and use identical
wording.

Reviewed By: yfeldblum

Differential Revision: D5955451

fbshipit-source-id: 1b55d5785dc0995d4d9364f48241e98ad01b31f4
folly/futures/Future.h