Interface ConditionalExecutionExecutor
- All Superinterfaces:
Executor
- All Known Implementing Classes:
ImmediateExecutor
-
Method Summary
Modifier and TypeMethodDescriptionbooleanReturnstrueif the current task may execute immediately on the calling thread.
-
Method Details
-
canExecuteImmediately
boolean canExecuteImmediately()Returnstrueif the current task may execute immediately on the calling thread.- Returns:
truewhen execution can be inlined
-