Skip to content

Commit bf327f7

Browse files
committed
uasyncio.core: Fix args handling for call_soon/call_later/call_later_ms.
1 parent 22cd93f commit bf327f7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

uasyncio.core/uasyncio/core.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,12 @@ def create_task(self, coro):
2929
# CPython asyncio incompatibility: we don't return Task object
3030

3131
def call_soon(self, callback, *args):
32-
self.call_at_(self.time(), callback, *args)
32+
self.call_at_(self.time(), callback, args)
3333

3434
def call_later(self, delay, callback, *args):
35-
self.call_at_(time.ticks_add(self.time(), int(delay * 1000)), callback, *args)
35+
self.call_at_(time.ticks_add(self.time(), int(delay * 1000)), callback, args)
3636

37-
def call_later_ms(self, delay, callback, args=()):
37+
def call_later_ms(self, delay, callback, *args):
3838
self.call_at_(time.ticks_add(self.time(), delay), callback, args)
3939

4040
def call_at_(self, time, callback, args=()):

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy