Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
zo1
· 2y ago · 0 comments
I've had plenty of success using run_in_executor in production. You basically just use the decorator, and it mostly just works.
Comments
[–]
sandeep1998
2y ago
Which decorator?
[–]
zo1
OP
2y 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...