We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The InterruptScope is currently available as usim.until:
InterruptScope
usim.until
async with until(time==20): ...
This gives the appearance that it works like a loop (while vs. until) and does not reflect the interrupt aspect much.
while
until
Possible alternatives:
with out
with draw
async with out(time==20): ... async with draw(time==20): ...
Visually, a leading _ could reflect the connection to the with:
_
with
async with _out(time==20): ...
However, leading _ has reserved meaning in Python.
The text was updated successfully, but these errors were encountered:
removed proposed 'async with out' from docs (see issue #1)
034e84b
An alternative would be unless:
unless
async with unless(time==20): ...
It could (not entirely sure yet) also be possible to use conditions/notifications directly:
async with time == 20: # abort if time != 20 ...
Though the current behaviour only makes sense for invertible conditions:
async with ~flag: # abort if flag is set ...
Sorry, something went wrong.
No branches or pull requests
The
InterruptScope
is currently available asusim.until
:This gives the appearance that it works like a loop (
while
vs.until
) and does not reflect the interrupt aspect much.Possible alternatives:
with out
orwith draw
:Visually, a leading
_
could reflect the connection to thewith
:However, leading
_
has reserved meaning in Python.The text was updated successfully, but these errors were encountered: