forked from facebook/watchman
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
watchman: rust: more plumbing to support subscriptions
Summary: split up the ClientTask into a task that simply reads PDUs in a loop (the ReaderTask) and then sends them to the other half of the ClientTask using the same queue that is used by the consumer of `Client` to schedule a request. This effectively serializes the requests and responses in a single loop which makes it easier to add in support for correctly handling unilateral subscription response in a later diff. Reviewed By: dtolnay Differential Revision: D18598224 fbshipit-source-id: 00fd7746b9b612ee9119bff204dc06c50c49bb98
- Loading branch information
1 parent
7503ae9
commit 8f03f19
Showing
1 changed file
with
124 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters