diff --git a/examples/a_trynamic_first_scene.py b/examples/a_trynamic_first_scene.py index 1d531255..05d61ba9 100644 --- a/examples/a_trynamic_first_scene.py +++ b/examples/a_trynamic_first_scene.py @@ -35,8 +35,8 @@ async def main(): name='gretchen', other_actor='donny', ) - print(await gretchen.result()) - print(await donny.result()) + print(await gretchen.wait_for_result()) + print(await donny.wait_for_result()) print("CUTTTT CUUTT CUT!!! Donny!! You're supposed to say...") diff --git a/examples/actor_spawning_and_causality.py b/examples/actor_spawning_and_causality.py index 119726dc..2232ae3e 100644 --- a/examples/actor_spawning_and_causality.py +++ b/examples/actor_spawning_and_causality.py @@ -20,7 +20,7 @@ async def main(): # The ``async with`` will unblock here since the 'some_linguist' # actor has completed its main task ``cellar_door``. - print(await portal.result()) + print(await portal.wait_for_result()) if __name__ == '__main__': diff --git a/examples/parallelism/single_func.py b/examples/parallelism/single_func.py index 8118b024..c4ea29e3 100644 --- a/examples/parallelism/single_func.py +++ b/examples/parallelism/single_func.py @@ -33,7 +33,7 @@ async def main(): await burn_cpu() # wait on result from target function - pid = await portal.result() + pid = await portal.wait_for_result() # end of nursery block print(f"Collected subproc {pid}")