Why Asyncio's Run_in_executor Blocks Tornado's Get Handler?
I want to run a slow blocking method (actually from a 3rd-party library) in tornado's async GET request handler. Let the method be just: def blocking_method(uid): print('slow m
Solution 1:
Browsers will recognize that you are trying to load the same page in two different tabs and delay the second request until the first has finished.
- Add something to your urls to make them unique. Instead of http://localhost:8888 in both tabs, load http://localhost:8888/?x=1 in one and http://localhost:8888/?x=2 in the other.
- Use two different browsers. For example, Firefox will be able to load a url even while that same url is being loaded in a Chrome tab.
Post a Comment for "Why Asyncio's Run_in_executor Blocks Tornado's Get Handler?"