Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
WorkerController shouldnt block on get_result after cancel
Summary: Right now, calling WorkerController.get_result after WorkerController.cancel will block. Thus it is a leaky abstraction. So please please don't do that. Thankfully, MultiThreadedCall doesn't do that. This just cleans up this leaky abstraction (which makes the code easier to read, for those trying to understand workerController.ml and worker.ml). (In particular, while I was working on it, I found it very surprising that cancellation worked at all without blocking). Reviewed By: dabek Differential Revision: D7537683 fbshipit-source-id: c9425d84fa5393e2a4ade04a10e70a7e26450d79
- Loading branch information