Interface PythonEventLoopProvider
- All Known Implementing Classes:
NettyPythonEventLoopProvider
Provides the active Python event loop for the current execution.
-
Method Summary
Modifier and TypeMethodDescriptioncurrent()Compatibility wrapper for callers that prefer Optional.default @Nullable PythonEventLoopFast path for code that only needs the active loop instance.
-
Method Details
-
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
Optional<PythonEventLoop> current()Compatibility wrapper for callers that prefer Optional.- Returns:
- The current Python event loop, if one is active.
-