code: @NonNull
      @CheckResult
      public static <T> LifecycleTransformer<T> bindView(@NonNull final View view) {
          checkNotNull(view, "view == null");
  
          return bind(Observable.create(new ViewDetachesOnSubscribe(view)));
      }
docs: Binds the given source to a View lifecycle.
  <p>
  Specifically, when the View detaches from the window, the sequence will be completed.
  <p>
  Warning: you should make sure to use the returned Transformer on the main thread,
  since we're binding to a View (which only allows binding on the main thread).
  
  @param view the view to bind the source sequence to
  @return a reusable {@link LifecycleTransformer} that unsubscribes the source during the View lifecycle