GreenUnixSelectorLoop: pass explicitly the loop
This commit is contained in:
parent
671cdf2c1d
commit
16ddef1ab5
|
@ -139,7 +139,7 @@ class GreenTask(_GreenTaskMixin, asyncio.Task):
|
|||
|
||||
class GreenUnixSelectorLoop(_GreenLoopMixin, asyncio.SelectorEventLoop):
|
||||
def create_task(self, coro):
|
||||
return GreenTask(coro)
|
||||
return GreenTask(coro, loop=self)
|
||||
|
||||
|
||||
class GreenEventLoopPolicy(asyncio.DefaultEventLoopPolicy):
|
||||
|
|
Loading…
Reference in New Issue