Re: asyncore.loop() blocks

Discussion in 'Python' started by F.G.Testa, Nov 12, 2003.

  1. F.G.Testa

    F.G.Testa Guest

    Thank you!

    "Richie Hindle" <> wrote in message
    news:...
    >
    > [F.G.]
    > > Is there a way to perform other operations while still looping with
    > > asyncore.loop() without spawning a new thread?

    >
    > while something():
    > asyncore.poll(timeout=0.1) # Or other suitable timeout in seconds
    > doOtherWork()
    >
    > --
    > Richie Hindle
    >
    >
    >
    > --
    > http://mail.python.org/mailman/listinfo/python-list
    >
     
    F.G.Testa, Nov 12, 2003
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Richie Hindle

    Re: asyncore.loop() blocks

    Richie Hindle, Nov 12, 2003, in forum: Python
    Replies:
    0
    Views:
    409
    Richie Hindle
    Nov 12, 2003
  2. F.G.Testa

    asyncore.loop() blocks

    F.G.Testa, Nov 12, 2003, in forum: Python
    Replies:
    0
    Views:
    379
    F.G.Testa
    Nov 12, 2003
  3. Anand Pillai
    Replies:
    3
    Views:
    1,191
    Josiah Carlson
    Nov 5, 2004
  4. matt
    Replies:
    1
    Views:
    287
    George Ogata
    Aug 6, 2004
  5. Isaac Won
    Replies:
    9
    Views:
    419
    Ulrich Eckhardt
    Mar 4, 2013
Loading...

Share This Page