Interface PythonContextExecutor
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Executes a callback with exclusive access to a Python-owned polyglot context.
The context, and any context-owned Value, is valid only for the duration of the
callback and must not be retained by the callback or its result.
- Since:
- 5.2.0
- Author:
- Micronaut Team
-
Method Summary
Modifier and TypeMethodDescription<T extends @Nullable Object>
TwithContext(Function<org.graalvm.polyglot.Context, T> callback) Execute a callback using an exclusively owned Python context.
-
Method Details
-
withContext
-