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

  • Home
  • SEARCH
  • 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 923769
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T19:14:37+00:00 2026-05-15T19:14:37+00:00

Is there a generic notion of asynchronous programming in python? Could I assign a

  • 0

Is there a generic notion of asynchronous programming in python? Could I assign a callback to a function, execute it and return to the main program flow immediately, no matter how long the execution of that function would take?

  • 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-05-15T19:14:37+00:00Added an answer on May 15, 2026 at 7:14 pm

    Take a look here:

    Asynchronous Programming in Python

    An Introduction to Asynchronous Programming and Twisted

    Worth checking out:

    asyncio (previously Tulip) has been checked into the Python default branch

    Edited on 14-Mar-2018

    Today Python has asyncIO — Asynchronous I/O, event loop, coroutines and tasks built in.

    Description taken from the link above:

    The asyncIO module provides infrastructure for writing single-threaded
    concurrent code using coroutines, multiplexing I/O access over sockets
    and other resources, running network clients and servers, and other
    related primitives. Here is a more detailed list of the package
    contents:

    1. a pluggable event loop with various system-specific implementations;
    2. transport and protocol abstractions (similar to those in Twisted);
    3. concrete support for TCP, UDP, SSL, subprocess pipes, delayed calls,
      and others (some may be system-dependent);
    4. a Future class that mimics the one in the concurrent.futures module, but adapted for use with the event loop;
    5. coroutines and tasks based on yield from (PEP 380), to
      help write concurrent code in a sequential fashion;
    6. cancellation support for Futures and coroutines;
    7. synchronization primitives for use
      between coroutines in a single thread, mimicking those in the
      threading module;
    8. an interface for passing work off to a threadpool,
      for times when you absolutely, positively have to use a library that
      makes blocking I/O calls.

    Asynchronous programming is more complex
    than classical “sequential” programming: see the Develop with asyncio
    page
    which lists common traps and explains how to avoid them. Enable
    the debug mode during development to detect common issues.

    Also worth checking out:

    A guide to asynchronous programming in Python with asyncIO

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

Sidebar

Related Questions

Is there a generic way to clone objects in VBA? So that i could
Is there a generic/automatic way in R or in python to parse xml files
Is there a generic way, without creating and managing your own CLR host, to
Is there a generic API call I can make to get a handle of
Is there a generic container implementing the 'set' behaviour in .NET? I know I
Are there any more generic tools that can compile or basically merge multiple PHP
There must be a generic way to transform some hierachical XML such as: <element1
Is there a way to bind a Generic List to a multicolumn listbox, yes
Is there a particular reason why a generic ICloneable<T> does not exist? It would
Is there any shorthand way of defining and using generic definitions without having to

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.