work/workmanager/src/main/java/androidx/work/impl/utils/CancelWorkRunnable.java
public static Runnable forId(
            @NonNull final UUID id,
            @NonNull final WorkManagerImpl workManagerImpl) {
        return new CancelWorkRunnable() {
            @WorkerThread
            @Override
            public void run() {
                cancel(workManagerImpl, id.toString());
                reschedulePendingWorkers(workManagerImpl);
            }
        };
    }
/**
     * Creates a {@link CancelWorkRunnable} that cancels work for a specific id.
     *
     * @param id The id to cancel
     * @param workManagerImpl The {@link WorkManagerImpl} to use
     * @return A {@link Runnable} that cancels work for a specific id
     */
Creates a  CancelWorkRunnable that cancels work for a specific id.
@param id The id to cancel
@param workManagerImpl The  WorkManagerImpl to use
@return A  Runnable that cancels work for a specific id
Creates a CancelWorkRunnable that cancels work for a specific id . @param id The id to cancel @param workManagerImpl The WorkManagerImpl to use @return A Runnable that cancels work for a specific id
public static Runnable forId(
            @NonNull final UUID id,
            @NonNull final WorkManagerImpl workManagerImpl) {
        return new CancelWorkRunnable() {
            @WorkerThread
            @Override
            public void run() {
                cancel(workManagerImpl, id.toString());
                reschedulePendingWorkers(workManagerImpl);
            }
        };
    }
public static Runnable forId ( @ NonNull final UUID id , @ NonNull final WorkManagerImpl workManagerImpl ) { return new CancelWorkRunnable ( ) { @ WorkerThread @ Override public void run ( ) { cancel ( workManagerImpl , id . toString ( ) ) ; reschedulePendingWorkers ( workManagerImpl ) ; } } ; }
Creates a {@link CancelWorkRunnable} that cancels work for a specific id.
Creates a { @link CancelWorkRunnable } that cancels work for a specific id .