private void notifyListeners() {
    // Listeners should be called on the main thread.
    if (Looper.myLooper() == Looper.getMainLooper()) {
      notifyListenersInternal();
    } else {
      handler.post(this::notifyListenersInternal);
    }
  }
Remove a given task failure listener. The task will continue to execute so you can re-add
a listener if necessary.

@return the task for call chaining.
lottie/src/main/java/com/airbnb/lottie/LottieTask.java