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.
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.