From 1c870da111ab71a3bd28fd7651a16cbf839ba34a Mon Sep 17 00:00:00 2001 From: nocturn9x Date: Mon, 4 Sep 2023 19:27:02 +0200 Subject: [PATCH] Minor changes --- tests/task_handling.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/task_handling.py b/tests/task_handling.py index 0202252..f71b463 100644 --- a/tests/task_handling.py +++ b/tests/task_handling.py @@ -11,7 +11,9 @@ async def main_cancel(i): print(f"[main] Child spawned, waiting {i} seconds before canceling it") await structio.sleep(i) print("[main] Cancelling child") - # Tasks can be cancelled individually, if necessary + # Tasks can be cancelled individually, if necessary. + # Cancellation is not a checkpoint, by the way (as + # evidenced by the lack of the 'await' keyword!) task.cancel() print(f"[main] Exited in {structio.clock() - t:.2f} seconds")