Class PythonAsyncioRuntime.ExecutorAdapter
java.lang.Object
io.micronaut.context.python.PythonAsyncioRuntime.ExecutorAdapter
- Enclosing class:
PythonAsyncioRuntime
Runs
asyncio.run_in_executor(None, ...) callbacks on Micronaut's blocking executor.-
Method Summary
Modifier and TypeMethodDescriptionvoidrun(org.graalvm.polyglot.Value future, org.graalvm.polyglot.Value callback, PythonEventLoop eventLoop) Run a Python callback on the configured blocking executor and complete a loop future on the event loop.
-
Method Details
-
run
public void run(org.graalvm.polyglot.Value future, org.graalvm.polyglot.Value callback, PythonEventLoop eventLoop) Run a Python callback on the configured blocking executor and complete a loop future on the event loop.- Parameters:
future- The Python asyncio future.callback- The Python callback.eventLoop- The current event loop.
-