Google Appengine and rx-Java?

前端 未结 2 1556
臣服心动
臣服心动 2021-01-19 03:59

Is rxJava library compatible with Google Appengine? If so are there any limitations? The only info I have found is mention of \'partial support\' on grepcode. http://grep

2条回答
  •  栀梦
    栀梦 (楼主)
    2021-01-19 04:36

    The problem is the limitation of Java Threads in Google Appengine: https://developers.google.com/appengine/docs/java/#Java_The_sandbox

    RxJava uses Java Thread and Executor in the Scheduler implementations. So the codes which get involved some concurrent Schedulers can not run in Google Java Sandbox.

    If you want to use Scheduler in Google Appengine, you need to implement a special Scheduler by yourself. Besides, some operators may use Scheduler by default, such as delay use Schedulers.computation() by default. Remember to use their Scheduler overload methods.

提交回复
热议问题