• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // Copyright 2019 The Chromium Authors
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4 
5 package org.chromium.base.task;
6 
7 /**
8  * An AsyncTask which does not require post-execution.
9  *
10  * The addition of this class is only temporary with the eventual goal of
11  * transitioning all such tasks to FutureTasks / Runnables.
12  *
13  * @param <Result> Return type of the background task.
14  */
15 public abstract class BackgroundOnlyAsyncTask<Result> extends AsyncTask<Result> {
16     @Override
onPostExecute(Result result)17     protected final void onPostExecute(Result result) {
18         // This method should never be executed for background-only tasks.
19         assert false;
20     }
21 }
22