Interface PythonEventLoopProvider

All Known Implementing Classes:
NettyPythonEventLoopProvider

@Internal public interface PythonEventLoopProvider
Provides the active Python event loop for the current execution.
  • Method Summary

    Modifier and Type
    Method
    Description
    Compatibility wrapper for callers that prefer Optional.
    default @Nullable PythonEventLoop
    Fast path for code that only needs the active loop instance.
  • Method Details

    • currentLoop

      default @Nullable PythonEventLoop currentLoop()
      Fast path for code that only needs the active loop instance.
      Returns:
      The current Python event loop, or null when none is active.
    • current

      Compatibility wrapper for callers that prefer Optional.
      Returns:
      The current Python event loop, if one is active.