public static void clear(Target<?> target) {
        Util.assertMainThread();
        Request request = target.getRequest();
        if (request != null) {
            request.clear();
            target.setRequest(null);
        }
    }
Cancel any pending loads Glide may have for the target and free any resources (such as {@link Bitmap}s) that may
have been loaded for the target so they may be reused.

@param target The Target to cancel loads for.
core/src/main/java/com/bumptech/glide/Glide.java