adomokos / light-service

Series of Actions with an emphasis on simplicity.
MIT License
837 stars 67 forks source link

WIP: Developer adds expectations and promises to an action #32

Closed ramontayag closed 10 years ago

ramontayag commented 10 years ago

(1) Can access these expectations in the executed block (2) Adds class getter expects_keys (3) Adds class getter promises_keys

There's one more piece missing: where the organiser checks (possibly through a matcher) its actions to see if they're compatible. Should we do it upon reduce? This means we won't be able to do it loading of the class, only when we actually execute the organiser.

adomokos commented 10 years ago

@ramontayag: I pulled in your proposed change, but I started to refactor it as well. You can see the progress here.