Update readme and upgrade all packages on travis

wait_for_actor
Tyler Goodlet 2018-08-13 11:37:09 -04:00
parent ea60a3dff9
commit b1f17dea1f
2 changed files with 2 additions and 4 deletions

View File

@ -7,7 +7,7 @@ python:
install: install:
- cd $TRAVIS_BUILD_DIR - cd $TRAVIS_BUILD_DIR
- pip install . -r requirements-test.txt - pip install -U . -r requirements-test.txt
script: script:
- pytest tests/ --no-print-logs - pytest tests/ --no-print-logs

View File

@ -94,8 +94,7 @@ the hip new film we're shooting:
async def say_hello(other_actor): async def say_hello(other_actor):
await trio.sleep(0.4) # wait for other actor to spawn async with tractor.wait_for_actor(other_actor) as portal:
async with tractor.find_actor(other_actor) as portal:
return await portal.run(_this_module, 'hi') return await portal.run(_this_module, 'hi')
@ -118,7 +117,6 @@ the hip new film we're shooting:
) )
print(await gretchen.result()) print(await gretchen.result())
print(await donny.result()) print(await donny.result())
await donny.cancel_actor()
print("CUTTTT CUUTT CUT!!! Donny!! You're supposed to say...") print("CUTTTT CUUTT CUT!!! Donny!! You're supposed to say...")