node-task / spec

A specification for javascript tasks.
MIT License
153 stars 2 forks source link

events #13

Closed paulmillr closed 11 years ago

paulmillr commented 11 years ago

Why do we need them exactly? If you have like 10 tasks that do stuff on 5000 files, we will have 50K events. Kind of not-always-necessary perf degradation. Also, complicates minimal task.

I propose to make them implementation-dependent. E.g. if you want, you implement emitting event in your task runner before each action. Currently all events are emitted before actions so it should be simple.

tkellen commented 11 years ago

The spec now makes them optional!