We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
get_event_loop
1 parent 5910a18 commit aad98ffCopy full SHA for aad98ff
1 file changed
uvloop/__init__.py
@@ -203,10 +203,7 @@ def get_event_loop(self) -> _AbstractEventLoop:
203
Returns an instance of EventLoop or raises an exception.
204
"""
205
if self._local._loop is None:
206
- raise RuntimeError(
207
- 'There is no current event loop in thread %r.'
208
- % threading.current_thread().name
209
- )
+ self._local._loop = self._loop_factory()
210
211
return self._local._loop
212
0 commit comments