Easypt

get

..Root.Task.get

Waits until the task ends and return its result.

Child of:

Task

Signatures:

NativeCallable, Callable

Example:

import("console");

auto taskA.=(Task(Root, {
    for (auto i.=(0).<, 10, i.++, {
        console.writeLine("A");
    });
    return("Task A ended.");
}));

console.writeLine(taskA.get());

Expected output:

A
A
A
A
A
A
A
A
A
A
Task A ended.