Skip to content

Commit

Permalink
add return documentation for the lazy_worker
Browse files Browse the repository at this point in the history
  • Loading branch information
denniswittich committed Dec 12, 2024
1 parent 8bc9983 commit 6ae14a3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions rosys/helpers/lazy_worker.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ async def run(self, coro: Coroutine[Any, None, _T]) -> _T | None:
If the worker is busy, the coroutine is put in a lifo queue with a size of 1.
All other coroutines are discarded.
:return: the result of the coroutine or None if the coroutine was discarded.
'''
self._notify()

Expand Down

0 comments on commit 6ae14a3

Please sign in to comment.