import com.google.common.collect.ImmutableMultimap;
import com.google.common.collect.Lists;
import com.google.common.collect.Multimap;
+import com.google.common.util.concurrent.MoreExecutors;
/**
* A pipeline is responsible for streaming audio data from a {@link Source} to
this.source = source;
this.sinks = sinks;
if (sinks.size() == 1) {
- executorService = Executors.newSingleThreadExecutor();
+ executorService = MoreExecutors.sameThreadExecutor();
} else {
executorService = Executors.newCachedThreadPool();
}