kopia lustrzana https://github.com/cirospaciari/socketify.py
pull/190/head
rodzic
df212efc27
commit
8ca74b05d8
|
@ -115,6 +115,11 @@ class Loop:
|
||||||
self.uv_loop.stop()
|
self.uv_loop.stop()
|
||||||
return future
|
return future
|
||||||
|
|
||||||
|
def create_background_task(self, bg_task):
|
||||||
|
def next_tick():
|
||||||
|
self.ensure_future(bg_task())
|
||||||
|
self.loop.call_soon(next_tick)
|
||||||
|
|
||||||
def run(self, task=None):
|
def run(self, task=None):
|
||||||
self.started = True
|
self.started = True
|
||||||
if task is not None:
|
if task is not None:
|
||||||
|
|
Ładowanie…
Reference in New Issue