public AnimatedDrawableOptionsBuilder setAllowPrefetching(boolean allowPrefetching) {
    mAllowPrefetching = allowPrefetching;
    return this;
  }
Sets whether the drawable can use worker threads to optimistically prefetch frames.

@param allowPrefetching whether the backend can use worker threads to prefetch frames
@return this builder
animated-base/src/main/java/com/facebook/imagepipeline/animated/base/AnimatedDrawableOptionsBuilder.java