Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(580)

Side by Side Diff: components/cronet/android/api/src/org/chromium/net/InlineExecutionProhibitedException.java

Issue 2283243002: Allow direct executors in cronet. (Closed)
Patch Set: Refactor DirectPreventingExecutor, and fix closing logic Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2016 The Chromium Authors. All rights reserved.
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.net;
6
7 import java.util.concurrent.RejectedExecutionException;
8
9 /**
10 * Thrown when an executor runs a submitted runnable inline in {@link
11 * java.util.concurrent.Executor#execute(Runnable)}.
12 */
13 public final class InlineExecutionProhibitedException extends RejectedExecutionE xception {
mef 2016/09/01 15:17:18 nit: Maybe call it DirectExecutionProhibitedExcept
Charles 2016/09/01 16:45:24 I named it this because people encountering this e
14 public InlineExecutionProhibitedException() {
15 super("Inline execution is prohibited for this request");
16 }
17 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698