code: public static <T> ObservableTransformer<T,T> doOnTerminateFx(Action onTerminate) {
          return obs -> obs.doOnTerminate(() -> runOnFx(onTerminate));
      }
docs: Performs the provided onTerminate action on the FX thread
  @param onTerminate
  @param <T>