From 3021544e7fc2761d42394e39eae1b3e478688853 Mon Sep 17 00:00:00 2001 From: Nocturn9x Date: Wed, 19 Oct 2022 11:39:50 +0200 Subject: [PATCH] Typos + minor module refactoring --- aiosched/internals/{queues.py => queue.py} | 0 aiosched/internals/syscalls.py | 2 +- aiosched/kernel.py | 2 +- 3 files changed, 2 insertions(+), 2 deletions(-) rename aiosched/internals/{queues.py => queue.py} (100%) diff --git a/aiosched/internals/queues.py b/aiosched/internals/queue.py similarity index 100% rename from aiosched/internals/queues.py rename to aiosched/internals/queue.py diff --git a/aiosched/internals/syscalls.py b/aiosched/internals/syscalls.py index fb87ff1..5642d5c 100644 --- a/aiosched/internals/syscalls.py +++ b/aiosched/internals/syscalls.py @@ -46,7 +46,7 @@ def syscall(method: str, *args, **kwargs) -> Any | None: async def spawn(func: Callable[..., Coroutine[Any, Any, Any]], *args, **kwargs) -> Task: """ Spawns a task from a coroutine and returns it. The coroutine - is put on the running cute and is executed as soon as possible. + is put on the running queue and is executed as soon as possible. Any positional and keyword arguments are passed along to the coroutine :param func: The coroutine function to instantiate. Note that this should NOT diff --git a/aiosched/kernel.py b/aiosched/kernel.py index b2c88e5..5a27d97 100644 --- a/aiosched/kernel.py +++ b/aiosched/kernel.py @@ -20,7 +20,7 @@ from collections import deque from functools import partial from aiosched.task import Task, TaskState from timeit import default_timer -from aiosched.internals.queues import TimeQueue +from aiosched.internals.queue import TimeQueue from aiosched.util.debugging import BaseDebugger from typing import Callable, Any, Coroutine from aiosched.errors import InternalError, ResourceBusy, Cancelled, ResourceClosed, ResourceBroken