lukeed / taskr

A fast, concurrency-focused task automation tool.
MIT License
2.53k stars 74 forks source link

Rework `fly.start` & `fly.exec` #211

Closed lukeed closed 7 years ago

lukeed commented 7 years ago

fly.exec was meant to be the core worker method that fires ("executes") a single task. This will be renamed to fly.start.

A single task represents a single Promise. Whether or not it's yielded depends on its serial vs parallel sequence.

yield this.start('task') 
//=> yield Promise.resolve(fn)