1.0.2 • Published 7 years ago
pon-task-task v1.0.2
pon-task-task
Pon task to call another task
Installation
$ npm install pon-task-task --saveUsage
'use strict'
const pon = require('pon')
const task = require('pon-task-task')
;(async () => {
const run = pon({
doSomething: () => { /* ... */},
callAnother: [task('doSomething')]
})
run('callAnother')
}).catch((err) => console.error(err))Signatures
define(names, options) -> function
Define task
| Param | type | Description |
|---|---|---|
| names | string|string[] | Name of pon tasks to call |
| options | Object | Optional settings |
License
This software is released under the Apache-2.0 License.