Run a UI callback synchronously when it is registered if the future is finished and if the callback is registered from the UI thread