pon-task-task
v1.0.2
Published
Pon task to call another task
Readme
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.
