Schedule a JuliaTask
and get a Promise
representing the result of the task.
Static
fromWrap a 0-arg JuliaFunction
as a JuliaTask
.
To use functions with more arguments, first wrap
them with Julia.wrapFunctionCall
.
Wrap sum([1, 2, 3])
as a JuliaTask
:
const func = Julia.wrapFunctionCall(
Julia.Base.sum,
{},
new Int32Array([1, 2, 3]),
);
const task = JuliaTask.from(func);
const result = await task.value;
The function to be wrapped.
Generated using TypeDoc
Wrapper for Julia
Task
s.