Name

task

Usage

macro

Syntax

(task &body forms)

Description

Creates a task that runs forms. The return value of task is a ThreadContext object that exposes the method GetResult and the property IsCompleted. GetResult blocks until IsCompleted is true.

user > (let a (task (* 1 2 3 4 5)))
it: a
user > (.get-result a)
it: 120
user > (.is-completed a)
it: true