Skip to content

Commit

Permalink
removed proposed 'async with out' from docs (see issue #1)
Browse files Browse the repository at this point in the history
  • Loading branch information
maxfischer2781 committed Apr 25, 2019
1 parent 77d9c0e commit 034e84b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ All hard-to-use functionality is automatically scoped and managed, making it nat
.. code:: python3
# scoping is a builtin concept of usim
async with out(time >= 3000) as scope:
async with until(time >= 3000) as scope:
# complex tools are automatically managed
async for message in stream:
scope.do(handle(message))
Expand Down
2 changes: 1 addition & 1 deletion docs/source/tutorial/04_cancel_scope.rst
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Interlude 01: Interrupting Scopes
>>>
>>> async def deliver_all(count=3):
... print('-- Start deliveries at', time.now)
... async with out(time + 10) as deliveries: # 1
... async with until(time + 10) as deliveries: # 1
... for delivery in range(count): # 2
... deliveries.do(deliver_one(delivery))
... await (time + 3)
Expand Down
2 changes: 1 addition & 1 deletion usim/_primitives/condition.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class Condition(Notification):
await condition # resume when condition is True
async with out(condition): # interrupt when condition is True
async with until(condition): # interrupt when condition is True
...
Every :py:class:`~.Condition` supports the bitwise operators
Expand Down

0 comments on commit 034e84b

Please sign in to comment.