Summary: Having another attempt at removing this. It's unsafe because it in some cases executes the .then() task in the timekeeper thread, rather than the executor the original future is using. When that default executor is an InlineExecutor, for example, you can get stack overflow. I tried to remove this use before, but having the same thread used for both the sonar client itself and rsocket, meant that they entered a deadlock trying to connect. Now that I've separated those jobs into separate threads, they can execute independently. Reviewed By: danielbuechele Differential Revision: D8748356 fbshipit-source-id: a1029ece2c7006ad7642cbf8aa59e692c76b19b2
8.5 KiB
8.5 KiB