Package io.meeds.chat.service.utils
Class AsyncTaskUtils
java.lang.Object
io.meeds.chat.service.utils.AsyncTaskUtils
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidRuns the given task on a new background thread, unlessMatrixConstants.MATRIX_ASYNC_ENABLEDis explicitly set tofalse(used by tests to make room-enable/disable side effects deterministic instead of racing with the calling thread).
-
Method Details
-
runAsync
Runs the given task on a new background thread, unlessMatrixConstants.MATRIX_ASYNC_ENABLEDis explicitly set tofalse(used by tests to make room-enable/disable side effects deterministic instead of racing with the calling thread).- Parameters:
threadName- the name of the background thread, when run asynchronouslytask- the task to run
-