Commit 4bef192
committed
Handle multiprocessing.pool init
AWS Lambda does not support multiprocessing.Queue or multiprocessing.Pool
Therefore the lib cannot init ThreadPool.
This commit adds a posibility do not init ThreadPool if the OS does
not support ThreadPool.
As far as async_req is disabled by default no need to change other functions.1 parent acbdad0 commit 4bef192
1 file changed
+8
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
5 | 6 | | |
6 | 7 | | |
7 | 8 | | |
| |||
63 | 64 | | |
64 | 65 | | |
65 | 66 | | |
66 | | - | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
67 | 71 | | |
68 | 72 | | |
69 | 73 | | |
| |||
83 | 87 | | |
84 | 88 | | |
85 | 89 | | |
86 | | - | |
87 | | - | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
88 | 93 | | |
89 | 94 | | |
90 | 95 | | |
| |||
0 commit comments