-
-
Notifications
You must be signed in to change notification settings - Fork 147
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactored the three async modes as separate modules for greater flex…
- Loading branch information
1 parent
47bc67e
commit a85ac4c
Showing
7 changed files
with
100 additions
and
62 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import importlib | ||
|
||
async = { | ||
'threading': importlib.import_module('eventlet.green.threading'), | ||
'queue': importlib.import_module('eventlet.queue'), | ||
'queue_class': 'Queue', | ||
'websocket': importlib.import_module('eventlet.websocket'), | ||
'websocket_class': 'WebSocketWSGI' | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import importlib | ||
|
||
async = { | ||
'threading': importlib.import_module('gevent.threading'), | ||
'queue': importlib.import_module('gevent.queue'), | ||
'queue_class': 'Queue', | ||
'websocket': None, | ||
'websocket_class': None | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import importlib | ||
|
||
try: | ||
queue = importlib.import_module('queue') | ||
except ImportError: # pragma: no cover | ||
queue = importlib.import_module('Queue') # pragma: no cover | ||
|
||
async = { | ||
'threading': importlib.import_module('threading'), | ||
'queue': queue, | ||
'queue_class': 'Queue', | ||
'websocket': None, | ||
'websocket_class': None | ||
} |
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
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