JSR223Variable

fun JSR223Variable(language: String, formula: String, timeout: Long = 1000)

builds a new JSR223Variable given a language name and a script.

Parameters

language

can be the name of the language, the file extension, or its mime type

formula

the script that will get interpreted

timeout

how long should the interpreter be allowed to compute before giving up, in ms. Defaults to 1000ms.