I'm trying to write an RxJava 2 scheduler handler ...
# android
p
I'm trying to write an RxJava 2 scheduler handler in Kotlin but I can't seem to get it working. What is the idiomatic Kotlin way of writing this:
Copy code
Function<Scheduler, Scheduler> testSchedulerHandler = new Function<Scheduler, Scheduler>() {
        @Override
        public Scheduler apply(Scheduler t) {
            return new TestScheduler();
        }
    };