aboutsummaryrefslogtreecommitdiffstats
path: root/main/src/cgeo/geocaching/utils
diff options
context:
space:
mode:
authorSamuel Tardieu <sam@rfc1149.net>2014-05-12 17:53:01 +0200
committerSamuel Tardieu <sam@rfc1149.net>2014-05-13 07:33:03 +0200
commit37774fbe5fbe6a0900207309747c6b01fcfa2753 (patch)
treef447603ddf9dbbd9ff8c4200094172264fd8eb5f /main/src/cgeo/geocaching/utils
parent29d6e9e4bb286f4bbe4ba5166ad8886d241e5f4f (diff)
downloadcgeo-37774fbe5fbe6a0900207309747c6b01fcfa2753.zip
cgeo-37774fbe5fbe6a0900207309747c6b01fcfa2753.tar.gz
cgeo-37774fbe5fbe6a0900207309747c6b01fcfa2753.tar.bz2
Upgrade to RxJava 0.18.3 and use the new Scheduler interface
Diffstat (limited to 'main/src/cgeo/geocaching/utils')
-rw-r--r--main/src/cgeo/geocaching/utils/RxUtils.java8
1 files changed, 1 insertions, 7 deletions
diff --git a/main/src/cgeo/geocaching/utils/RxUtils.java b/main/src/cgeo/geocaching/utils/RxUtils.java
index 8e7864c..deba573 100644
--- a/main/src/cgeo/geocaching/utils/RxUtils.java
+++ b/main/src/cgeo/geocaching/utils/RxUtils.java
@@ -3,16 +3,10 @@ package cgeo.geocaching.utils;
import rx.Scheduler;
import rx.schedulers.Schedulers;
-import java.util.concurrent.LinkedBlockingQueue;
-import java.util.concurrent.ThreadPoolExecutor;
-import java.util.concurrent.TimeUnit;
-
public class RxUtils {
// Utility class, not to be instanciated
private RxUtils() {}
- final static private int cores = Runtime.getRuntime().availableProcessors();
- public final static Scheduler computationScheduler = Schedulers.executor(new ThreadPoolExecutor(1, cores, 5, TimeUnit.SECONDS, new LinkedBlockingQueue<Runnable>()));
-
+ public final static Scheduler computationScheduler = Schedulers.computation();
}