From cf43bcd579052588a0fedc24dd2fe8beafaf9cbc Mon Sep 17 00:00:00 2001 From: nocturn9x Date: Fri, 24 Dec 2021 19:09:34 +0100 Subject: [PATCH] Minor change to example snippet --- README.md | 2 +- tests/simple_example.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index b82c7a5..dac3a3b 100644 --- a/README.md +++ b/README.md @@ -61,7 +61,7 @@ async def main(): # Notice how, until here, the output is in order: this is on purpose! # When using blocking mode, asyncevents even guarantees that handlers # with different priorities will be executed in order - print("Firing blocking event 'hello'") + print("Firing non-blocking event 'hi'") await emit("hi", block=False) # This one spawns hi() and returns immediately print("Non-blocking event 'hello' fired") await emit("event3") # Does nothing: No handlers registered for event3! diff --git a/tests/simple_example.py b/tests/simple_example.py index 98e954d..c284e95 100644 --- a/tests/simple_example.py +++ b/tests/simple_example.py @@ -21,7 +21,7 @@ async def main(): # Notice how, until here, the output is in order: this is on purpose! # When using blocking mode, asyncevents even guarantees that handlers # with different priorities will be executed in order - print("Firing blocking event 'hello'") + print("Firing non-blocking event 'hi'") await emit("hi", block=False) # This one spawns hi() and returns immediately print("Non-blocking event 'hello' fired") await emit("event3") # Does nothing: No handlers registered for event3!