Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > Re: asyncore.loop() blocks

Reply
Thread Tools

Re: asyncore.loop() blocks

 
 
F.G.Testa
Guest
Posts: n/a
 
      11-12-2003
Thank you!

"Richie Hindle" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
>
> [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://www.velocityreviews.com/forums/(E-Mail Removed)
>
>
> --
> http://mail.python.org/mailman/listinfo/python-list
>





 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Methods and blocks - not that clear when blocks passed into Steven Taylor Ruby 9 04-27-2009 08:46 AM
"Building Blocks" are "Application Blocks" Arjen ASP .Net 3 02-27-2005 01:06 AM
struggling at starting blocks getting workgroup recognised =?Utf-8?B?Q2Fyb2wgQg==?= Wireless Networking 2 02-13-2005 10:33 PM
procs/blocks - blocks with procs, blocks with blocks? matt Ruby 1 08-06-2004 01:33 AM



Advertisments