Fix func name mismatch

contexts
Tyler Goodlet 2019-01-21 12:07:58 -05:00
parent 5e5c917081
commit 1e18c70ad1
1 changed files with 2 additions and 1 deletions

View File

@ -111,6 +111,7 @@ the hip new film we're shooting:
donny = await n.run_in_actor( donny = await n.run_in_actor(
'donny', 'donny',
say_hello, say_hello,
# arguments are always named
other_actor='gretchen', other_actor='gretchen',
) )
gretchen = await n.run_in_actor( gretchen = await n.run_in_actor(
@ -162,7 +163,7 @@ and use the ``run_in_actor()`` method:
""" """
async with tractor.open_nursery() as n: async with tractor.open_nursery() as n:
portal = await n.run_in_actor('frank', movie_theatre_question) portal = await n.run_in_actor('teacher', cellar_door)
# The ``async with`` will unblock here since the 'frank' # The ``async with`` will unblock here since the 'frank'
# actor has completed its main task ``movie_theatre_question()``. # actor has completed its main task ``movie_theatre_question()``.