Skip to content

Add an updated event which can be waited on#32

Open
eric-wieser wants to merge 2 commits intomitchgu:masterfrom
skrub-wreckers:continous-event
Open

Add an updated event which can be waited on#32
eric-wieser wants to merge 2 commits intomitchgu:masterfrom
skrub-wreckers:continous-event

Conversation

@eric-wieser
Copy link
Contributor

So now we can do:

pin = DigitalInput(tamp, 10, continuous=False)
if not pin.update().wait(timeout=2):
    warnings.warn('Pin did not update fast enough - using last value')

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was a mistake in #25

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants