Interface SnippetOutcome.Suspended

All Superinterfaces:
SnippetOutcome, SnippetOutcome.HaltsScript
Enclosing interface:
SnippetOutcome

public static sealed interface SnippetOutcome.Suspended extends SnippetOutcome, SnippetOutcome.HaltsScript
Indicates that the snippet invoked JavaBox.suspend().

The script will be suspended mid-execution. To restart its execution, invoke resume() with the value you want to be returned to the script from suspend().

After a snippet is resumed, a new outcome will have replaced the SnippetOutcome.Suspended outcome in the next ScriptResult returned by resume().

  • Method Details