gregglind / micropilot

Lightweight event monitoring and observation in Firefox addons.
http://gregglind.github.com/micropilot/
4 stars 2 forks source link

multiple data uploads improvements #25

Closed ilanasegall closed 11 years ago

ilanasegall commented 11 years ago

it seems like multiple uploads of data should be a one-liner instead of having to implement it as in the README. So instead of lifetime(whatever).then(fn {ezupload()}), it should be more like repeatevery(whatever).(fn {ezupload()}) -alternatively- ezupload({after_lifetime:x}) vs ezupload({repeat_every:x})

This really kills the elegance of the promise-style api in a lot of ways, but "repeated" actions are going to be common enough that I think it should merit taking a deeper look. Other solutions welcome.

ilanasegall commented 11 years ago

Apparently, you already addressed this. Will add comments there.