Functorize Watchman
commit3bab8d4af45160c1a8064b2fac5ff3ac6bf61740
authorGabe Levi <gabe@fb.com>
Thu, 14 Jun 2018 21:37:45 +0000 (14 14:37 -0700)
committerHhvm Bot <hhvm-bot@users.noreply.github.com>
Thu, 14 Jun 2018 21:42:33 +0000 (14 14:42 -0700)
tree5bb75519f160e8b3118256796f3de9fcd5571d39
parent522c593fb4bf8f93afab78283c7d1aee65cf6a4d
Functorize Watchman

Summary: I intend to create Watchman_lwt, which works the same as Watchman but uses Lwt. This allows us to use non-blocking I/O when talking to Watchman and waiting for responses. This is particularly useful, since we can subscribe to notifications and get notified instantly when something changes.

Reviewed By: avikchaudhuri

Differential Revision: D8249216

fbshipit-source-id: b0e2ab9c321f874cfce4b4f3325a956b24a0ee67
hphp/hack/src/watchman/watchman.ml
hphp/hack/src/watchman/watchman.mli
hphp/hack/src/watchman/watchman_sig.ml
hphp/hack/test/watchman/watchman_mock_test.ml
hphp/hack/test/watchman/watchman_unit_test.ml