vertx / io.vertx.reactivex.core / Context / isOnWorkerThread

isOnWorkerThread

open static fun isOnWorkerThread(): Boolean

Is the current thread a worker thread?

NOTE! This is not always the same as calling io.vertx.reactivex.core.Context#isWorkerContext. If you are running blocking code from an event loop context, then this will return true but io.vertx.reactivex.core.Context#isWorkerContext will return false.

Return
true if current thread is a worker thread, false otherwise