vertx / io.vertx.rx.java / RxHelper / schedulerHook

schedulerHook

open static fun schedulerHook(context: Context): RxJavaSchedulersHook

Create a scheduler hook for a Context object, the rx.plugins.RxJavaSchedulersHook#getIOScheduler() uses a blocking scheduler.

Parameters

context - the context object

Return
the scheduler hook

open static fun schedulerHook(vertx: Vertx): RxJavaSchedulersHook

Create a scheduler hook for a Vertx object, the rx.plugins.RxJavaSchedulersHook#getIOScheduler() uses a blocking scheduler.

Parameters

vertx - the vertx object

Return
the scheduler hook