Interface ConditionalExecutionExecutor

All Superinterfaces:
Executor
All Known Implementing Classes:
ImmediateExecutor

@Internal public interface ConditionalExecutionExecutor extends Executor
Internal executor contract that can determine whether execution can be inlined on the calling thread.
Since:
5.0.0
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Returns true if the current task may execute immediately on the calling thread.

    Methods inherited from interface Executor

    execute
  • Method Details

    • canExecuteImmediately

      boolean canExecuteImmediately()
      Returns true if the current task may execute immediately on the calling thread.
      Returns:
      true when execution can be inlined