@Override void delimitStream(Action<? super Throwable> onError, Action<? super ContinuationStream> segment) { throw new ExecutionException("this execution has completed (you may be trying to use a promise in a cleanup method)"); }
@Override void delimit(Action<? super Throwable> onError, Action<? super Continuation> segment) { throw new ExecutionException("this execution has completed (you may be trying to use a promise in a cleanup method)"); }
@Override void enqueue(Block segment) { throw new ExecutionException("this execution has completed (you may be trying to use a promise in a cleanup method)"); }
@Override void error(Throwable throwable) { throw new ExecutionException("this execution has completed (you may be trying to use a promise in a cleanup method)"); }
public static void requireComputeThread(String message) { if (!require().isCompute()) { throw new ExecutionException(toMessage(message)); } }
public static void requireBlockingThread(String message) { if (require().isCompute()) { throw new ExecutionException(toMessage(message)); } }