java - RxJava hook not being called on custom Scheduler -


i have registered hook via

rxjavahooks.setonscheduleaction(new myonscheduleaction()); 

and created custom scheduler (for testing purposes) using

scheduler scheduler = schedulers.from(executors.newsinglethreadexecutor()); 

but following piece of code doesn't call registered hook:

observable.create(subscriber -> {     subscriber.onnext("hi");     subscriber.oncomplete(); }).subscribeon(scheduler).subscribe(mytestsubscriber); 

if i, however, replace subscribeon(scheduler) subscribeon(schedulers.io()) (or subscribeon(schedulers.computation()), matter) hook called expected.

is expected behaviour? i'm using rxjava 1.1.8.

this bug schedulers.from() , fixed in 1.1.9. can track related issue/pr here.


Comments

Popular posts from this blog

Spring Boot + JPA + Hibernate: Unable to locate persister -

go - Golang: panic: runtime error: invalid memory address or nil pointer dereference using bufio.Scanner -

c - double free or corruption (fasttop) -