Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9153597
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T12:17:55+00:00 2026-06-17T12:17:55+00:00

I have a tornado app and I want to to use a blocking library

  • 0

I have a tornado app and I want to to use a blocking library to accomplish something. In cases where it’s not possible to rewrite the library in an async manner, what’s the way to execute it in tornado?

For example, I’d like to be able to put an @asynchronous decorator on a request handler, in it start some long running function that will just return a response once it’s done. I can’t just put a callback. The easiest example is of course what is the right way to sleep for 10 seconds without blocking tornado’s only thread?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T12:17:56+00:00Added an answer on June 17, 2026 at 12:17 pm

    It seems like what I wanted was simply creating a new thread/process, and that the actual act of calling back to tornado needs to be done with IOLoop.instance().add_callback

    More information is available here

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a simple Flask app running. To serve I use Tornado. The code
I have lot of code in my Tornado app which looks like this: @tornado.web.asynchronous
I have this python code in Tornado: if not usr: self.lock_tables(write, ['devices_permissions']) self.db.execute(INSERT devices_permissions
I'm using demo from facebook's tornado But I don't want to use MySQL and
I have the following use case for my Tornado web server: Upon POST requests
I am building an app in tornado using sqlalchemy and wtforms. I have two
i want to know tornado's internal workflow, and have seen this article , it's
i have interest in asp.net web app use html5 websocket, long polling. i've heard
I am repeatedly getting this error with my Tornado app on launch: File /Library/Python/2.7/site-packages/tornado/database.py,
I have a basic app set up using Backbone.js and Tornado Web. When I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.