From 1743296767ce9945cf3f547c70780576c93c5440 Mon Sep 17 00:00:00 2001 From: Leon van Bokhorst Date: Sun, 27 Oct 2024 09:25:33 +0100 Subject: [PATCH] rename refactoring for consistency --- pocs/poc_async.py | 21 ------------------- ...scenario.py => nfd_simple_lab_scenario.py} | 0 ...{nfs_story_waves.py => nfd_story_waves.py} | 0 3 files changed, 21 deletions(-) delete mode 100644 pocs/poc_async.py rename src/{nfs_simple_lab_scenario.py => nfd_simple_lab_scenario.py} (100%) rename src/{nfs_story_waves.py => nfd_story_waves.py} (100%) diff --git a/pocs/poc_async.py b/pocs/poc_async.py deleted file mode 100644 index dd095bf..0000000 --- a/pocs/poc_async.py +++ /dev/null @@ -1,21 +0,0 @@ -import asyncio - - -async def task1(): - print("Task 1 starting") - await asyncio.sleep(2) # Simulate a delay - print("Task 1 done") - - -async def task2(): - print("Task 2 starting") - await asyncio.sleep(1) # Simulate a shorter delay - print("Task 2 done") - - -async def main(): - await asyncio.gather(task1(), task2()) # Run tasks concurrently - - -# Run the event loop -asyncio.run(main()) diff --git a/src/nfs_simple_lab_scenario.py b/src/nfd_simple_lab_scenario.py similarity index 100% rename from src/nfs_simple_lab_scenario.py rename to src/nfd_simple_lab_scenario.py diff --git a/src/nfs_story_waves.py b/src/nfd_story_waves.py similarity index 100% rename from src/nfs_story_waves.py rename to src/nfd_story_waves.py