submit<Q, R> method

  1. @override
Future<R> submit<Q, R>(
  1. Job<Q, R> job
)
override

Implementation

@override
Future<R> submit<Q, R>(Job<Q, R> job) {
  if (disposed || job.isCancelled) {
    return Future.error(CancellationException());
  }
  return Future.value(job.computeFunction(job.value));
}