Skip to content

Commit

Permalink
chore: fix typo immediately
Browse files Browse the repository at this point in the history
  • Loading branch information
pluveto committed Sep 25, 2023
1 parent 9bf157b commit df6ba7d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions heapq_scheduler/heapq_scheduler.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,11 +65,11 @@ def schedule(
self,
fn: Callable[[], None],
period: float,
immidiately: bool = False,
immediately: bool = False,
life: int = -1,
) -> None:
ts = time.time()
next_run = ts if immidiately else ts + period
next_run = ts if immediately else ts + period
item = _QueueItem(next_run, fn, period, life)
self._schedule(item)

Expand Down
2 changes: 1 addition & 1 deletion heapq_scheduler/job.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@
class JobDescrition(TypedDict):
fn: Callable[[], None]
interval: float # seconds
run_immidiately: bool
run_immediately: bool
2 changes: 1 addition & 1 deletion heapq_scheduler/scheduler_protocol.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ def schedule(
self,
fn: _TaskFn,
period: float,
immidiately: bool = False,
immediately: bool = False,
life: int = -1,
) -> None:
...
Expand Down

0 comments on commit df6ba7d

Please sign in to comment.