# Module: data.task¶

Stability: 3 - Stable https://github.com/folktale/data.task/issues 3.0.0 https://github.com/folktale/data.task Portable data.task

A structure for time-dependent values, providing explicit effects for delayed computations, latency, etc.

Require the data.task package, after installing it:

var Task = require('data.task')


This gives you back a data.task.Task object.

## Why?¶

This structure allows one to model side-effects (specially time-based ones) explicitly, such that one can have full knowledge of when they’re dealing with delayed computations, latency, or anything that isn’t pure or can be computed immediately.

A common use of this structure is to replace the usual Continuation-Passing Style form of programming in order to be able to compose and sequence time-dependent effects using the generic and powerful monadic operations.

## Types and structures¶

class data.task.Task
type Task(α, β)