Skip to content

Commit

Permalink
Implement Policy.set_child_watcher(). Closes issue #112.
Browse files Browse the repository at this point in the history
  • Loading branch information
1st1 committed Nov 10, 2017
1 parent fd15df0 commit 78969a6
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions uvloop/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,15 @@ class EventLoopPolicy(__BasePolicy):
<uvloop.Loop running=False closed=False debug=False>
"""

def __init__(self):
super().__init__()
self.__watcher = None

def _loop_factory(self):
return new_event_loop()

def get_child_watcher(self):
return self.__watcher

def set_child_watcher(self, watcher):
self.__watcher = watcher

0 comments on commit 78969a6

Please sign in to comment.