Future<Unit> global fixup
authorHans Fugal <fugalh@fb.com>
Wed, 1 Jul 2015 22:42:50 +0000 (15:42 -0700)
committerSara Golemon <sgolemon@fb.com>
Wed, 1 Jul 2015 23:24:55 +0000 (16:24 -0700)
commit812f803cdda23edfd855b2d60f0d08477c427ede
treedb8f0f69321d35be10097538133a0f08b2c3694b
parent98a8a89d7d118b3098c0fb1308f171745b530e4b
Future<Unit> global fixup

Summary: This is three codemods:

* `(folly::(Future|Promise|Try))<void>` -> `\1<folly::Unit>`
* `(Future|Promise|Try)<void>` -> `\1<Unit>`
* add `using folly::Unit` statements where needed

Then
* undo false positives in javascript files and fibers::Promise

cf D2201259, which this will land with

Reviewed By: @djwatson

Differential Revision: D2201801
folly/futures/Future-inl.h
folly/futures/helpers.h