Skip to content
This repository has been archived by the owner on Jan 20, 2020. It is now read-only.

Make state a property that automatically calls refresh #27

Open
Midnighter opened this issue Feb 3, 2017 · 0 comments
Open

Make state a property that automatically calls refresh #27

Midnighter opened this issue Feb 3, 2017 · 0 comments

Comments

@Midnighter
Copy link

Example: I have a stack that is in state 'Stopped'. I have a local reference to that stack in the variable stack. I call stack.start(). The state is now indefinitely 'Starting' until I call .refresh(). It's simple to call refresh but it'd be even easier to make state a @property that calls refresh before reporting its (new) value.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant