Oahu orchestrates tasks
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
examples Implements README specification Jun 28, 2016
src
test Add support for handlers array Jul 3, 2016
.codeclimate.yml
.eslintrc.json Add .codeclimate.yml Jun 29, 2016
.gitignore
README.md
circle.yml
index.js
package.json

README.md

Oahu JS CircleCI Code Climate Test Coverage

Oahu orchestrates tasks

Usage

'use strict';

const oahu = require('oahu');

oahu.pipeline(
    backdoor => {
        console.log('step 1');
        backdoor.next();
    },
    backdoor => {
        setTimeout(() => {
            console.log('step 2');
            backdoor.set('name', 'World');
            backdoor.next();
        }, 1000);
    },
    backdoor => {
        console.log('step 3');
        const name = backdoor.get('name');
        backdoor.done(name);
    }
)
.then(name => {
    console.log(`Hello ${name}!`);
})
.catch(err => {
    console.error(err, ':(');
});