Class ImmediateExecutor
java.lang.Object
io.micronaut.core.execution.ImmediateExecutor
- All Implemented Interfaces:
ConditionalExecutionExecutor, Executor
An executor that immediately executes its tasks.
- Since:
- 5.0.0
- Author:
- Jonas Konrad
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturnstrueif the current task may execute immediately on the calling thread.void
-
Field Details
-
INSTANCE
-
-
Method Details
-
execute
-
canExecuteImmediately
public boolean canExecuteImmediately()Description copied from interface:ConditionalExecutionExecutorReturnstrueif the current task may execute immediately on the calling thread.- Specified by:
canExecuteImmediatelyin interfaceConditionalExecutionExecutor- Returns:
truewhen execution can be inlined
-