szaszm commented on code in PR #9182:
URL: https://github.com/apache/nifi/pull/9182#discussion_r1720091268
##########
nifi-api/src/main/java/org/apache/nifi/processor/ProcessContext.java:
##########
@@ -73,6 +73,15 @@ public interface ProcessContext extends PropertyContext,
ClusterContext {
*/
void yield();
+ /**
+ * <p>
+ * An alternative name for the yield() method so that it can be called
from Python.
+ * </p>
+ */
+ default void yieldResources() {
Review Comment:
Using py4j
[get_method](https://www.py4j.org/py4j_java_gateway.html#py4j.java_gateway.get_method)
might allow us to retrieve a method reference to yield without the keyword
conflict, since it takes the method name as a string.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]