Lumouille

Results 85 comments of Lumouille

> I don't understand, how many commands do you have? Why do you even have a duplicate? its an example, the issue is more than if a command cant be...

sorry i renamed the branch and it deleted the other one

> We should probably add an additional parameter for limiting the number of active tasks maybe: def __init__(self, ..., overlap: bool | int = True): If overlap is: True: allow...

so i did some change but i'll debug that tonight + if someone can tell me about my implementation in case overlap if false, should i stick with await coro...

well my new fix breaks a bit the current_loop number, if anyone has an idea

``` @tasks.loop(seconds=5, overlap=2) async def test_loop(self): logger.debug( f"test loop {self.test_loop.current_loop}, Next loop {self.test_loop.next_iteration}, tasks {self.test_loop.get_task()}" ) await asyncio.sleep(15) logger.debug(f"test loop done {self.test_loop.current_loop}") ```

i mean i dont really think thats an issue, since its overlapping there is no way to keep the current loop inside the same thing, and if i do make...

so i did that inside the loop it continue to give the same one, but if you use another command it return the real one, what do you think about...