Y
Hacker News
new
|
ask
|
show
|
jobs
by
zo1
622 days ago
I've had plenty of success using run_in_executor in production. You basically just use the decorator, and it mostly just works.
1 comments
sandeep1998
622 days ago
Which decorator?
link
zo1
622 days ago
I went back to look at some of the old code as my memory was hazy. It was tornado's implementation of the run_on_executor method that we used, which is used as a decorator.
https://www.tornadoweb.org/en/stable/concurrent.html#tornado...
link