Skip to content

Commit

Permalink
Merge pull request #65 from altendky/example_missing_async
Browse files Browse the repository at this point in the history
Add missing async in readme example
  • Loading branch information
altendky authored Jul 3, 2020
2 parents b745c20 + 5da6956 commit a6b5d78
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,8 @@ of Qt concurrency.
async def together(a_signal):
with open(self.some_path, 'w') as file:
with qtrio.open_emissions_channel(signals=[a_signal]) as emissions:
with emissions.channel:
async with qtrio.open_emissions_channel(signals=[a_signal]) as emissions:
async with emissions.channel:
file.write('before')
emission = await emissions.channel.receive()
[value] = emission.args
Expand Down

0 comments on commit a6b5d78

Please sign in to comment.