This method cannot be a local function, as it is used by both `onComplete` and `link`. The `link` method uses `dispatchOrAddCallback` to safely transfer callbacks to the other promise.