File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
src/main/java/org/truffleruby/core/thread Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -564,14 +564,14 @@ public Object apply(State state) {
564
564
}
565
565
}
566
566
567
- /** Runs {@code action} until it returns a non-null value. The given action should throw an
568
- * {@link InterruptedException} when {@link Thread#interrupt()} is called. Otherwise, the {@link SafepointManager}
569
- * will not be able to interrupt this action. See {@link ThreadNodes.ThreadRunBlockingSystemCallNode} for blocking
570
- * native calls. If the action throws an {@link InterruptedException}, it will be retried until it returns a
571
- * non-null value.
567
+ /** Runs {@code action} until it returns a value (IOW, until it does not throw {@link InterruptedException}). The
568
+ * given action should throw an {@link InterruptedException} when {@link Thread#interrupt()} is called. Otherwise,
569
+ * the {@link SafepointManager} will not be able to interrupt this action. See
570
+ * {@link ThreadNodes.ThreadRunBlockingSystemCallNode} for blocking native calls. If the action throws an
571
+ * {@link InterruptedException}, it will be retried until it returns a non-null value.
572
572
*
573
573
* @param action must not touch any Ruby state
574
- * @return the first non-null return value from {@code action} */
574
+ * @return the return value from {@code action} */
575
575
@ TruffleBoundary
576
576
public <T > T runUntilResult (Node currentNode , BlockingAction <T > action ) {
577
577
return runUntilResult (currentNode , action , null , null );
You can’t perform that action at this time.
0 commit comments