Extract Try to top-level
authorYedidya Feldblum <yfeldblum@fb.com>
Thu, 19 May 2016 09:20:24 +0000 (02:20 -0700)
committerFacebook Github Bot 6 <facebook-github-bot-6-bot@fb.com>
Thu, 19 May 2016 09:23:43 +0000 (02:23 -0700)
commita56a988a8cd07c7e3250f27594b8f92c9274b30d
tree0424ba7e5309b274138856f288d0c519a919a99a
parent4d78cf49cefb03bd8b376fa2061e5cbe7ee41746
Extract Try to top-level

Summary:
[Folly] Extract `Try` to top-level.

It was in `folly/futures/`, but this diff moves it to `folly/`.

It is needed for futures, but it is are more general than futures and can be used separately.

Use `folly/Try.h` instead of `folly/futures/Try.h`.

Also fixes up all `#include` sites:

    hg grep -lw folly/futures/Try | xargs perl -pi -e 's,\bfolly/futures/Try\b,folly/Try,g'

Reviewed By: markisaa

Differential Revision: D3309908

fbshipit-source-id: cdf13f0ac0b0e36aa07e0f1d04870d06500c5874
17 files changed:
folly/Makefile.am
folly/Try-inl.h [new file with mode: 0644]
folly/Try.h [new file with mode: 0644]
folly/fibers/AddTasks.h
folly/fibers/FiberManager-inl.h
folly/fibers/FiberManager.h
folly/fibers/Promise.h
folly/futures/Future.h
folly/futures/Promise.h
folly/futures/README.md
folly/futures/Try-inl.h [deleted file]
folly/futures/Try.h [deleted file]
folly/futures/detail/Core.h
folly/futures/test/HeaderCompileTest.cpp
folly/futures/test/TryTest.cpp [deleted file]
folly/test/Makefile.am
folly/test/TryTest.cpp [new file with mode: 0644]