-
-
Notifications
You must be signed in to change notification settings - Fork 106
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ensure that
pygls.Server
uses the event loop it is given
Before this commit `pygls` would override the event loop for the current thread even when given an existing loop to use. Now `pygls` will rely on `asyncio.new_event_loop` to create the appropriate event loop for the platform and only call it when `loop=None` This commit also introduces the `_own_loop` flag which is used to make sure `pygls` does not close an event loop it does not own.
- Loading branch information
Showing
2 changed files
with
19 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters