Tags: OpenTSDB/async
Tags
Optimization: don't wait on a Deferred already in State.DONE. When a Callback returned a Deferred already in State.DONE, the current Deferred was paused and immediately resumed, which involved the creation of an unnecessary Continue callback and other objects. We now bypass this entire code path, which helps in the cases where a Callback returns a Deferred built with Deferred.fromResult or Deferred.fromError, or if a real Deferred completes so quickly that we directly see it in State.DONE. Change-Id: I710266e05b5f37d676018f706c923ecafa276ffc