0.2.0-beta.5 • Published 8 years ago

natron-core v0.2.0-beta.5

Weekly downloads
6
License
MIT
Repository
github
Last release
8 years ago

Natron

Tasks with Promises

Version Downloads Build Status Readme

Gitter Chat

This module is part of Natron and contains the core functionality of the task runner.

Documentation

See the documentation for natron-core.

Usage

import {task} from "natron-core";

function fn1(x) { return x * 1; }
function fn2(x) { return x * 2; }
function fn3(x) { return x * 3; }

// => fn1(2) -> (fn2(2) || fn3(2))
(task([fn1, [[fn2, fn3]]]).run(2)
  .then((res) => {
    // res = [2, [4, 6]]
  })
  .catch((err) => {
    // handle error
  })
);
0.2.0-beta.5

8 years ago

0.2.0-beta.4

8 years ago

0.2.0-beta.3

8 years ago

0.2.0-beta.2

8 years ago

0.2.0-alpha.2

8 years ago

0.2.0-beta.1

8 years ago

0.1.0

9 years ago

0.0.0

9 years ago