Class SameThreadExecutionContext
java.lang.Object
com.here.platform.data.client.utils.SameThreadExecutionContext
Executes
Runnables on the thread calling execute.
WARNING: You will get all kinds of undesirable behaviour if it takes a long time to run and the caller assumes that it will run on another thread.
This execution context is meant to be used to avoid thread scheduling for trivial Future transformations.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidstatic scala.concurrent.ExecutionContextprepare()static voidreportFailure(Throwable cause)
-
Constructor Details
-
SameThreadExecutionContext
public SameThreadExecutionContext()
-
-
Method Details
-
execute
-
reportFailure
-
prepare
public static scala.concurrent.ExecutionContext prepare()
-