• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: fetch loop
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: fetch loop


  • Subject: Re: fetch loop
  • From: Ondra Cada <email@hidden>
  • Date: Mon, 24 Apr 2006 18:08:50 +0200

Philippe,

On Apr 24, 2006, at 4:56 PM, Philippe Lafoucrière wrote:

First of all, "hi list, I'm a complete noob in wo".

Welcome!

Is there a way to create a continous loop in wo ?

Scores :)

I have to check a distant webservice every 30 seconds and fetch new data if available.

In this very case, though, I do not really think a loop is what you want: a WOTimer would probably be better.


Nevertheless, if you want to, you can easily spawn another thread, use an infinite loop there, and sleep the thread for half a minute in the loop. Generally I would rather recommend the timer approach, but the latter can be more convenient in some cases (like, if a complex initialization would be needed each time).
---
Ondra Čada
OCSoftware: email@hidden http://www.ocs.cz
private email@hidden http://www.ocs.cz/oc



_______________________________________________ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
References: 
 >fetch loop (From: Philippe Lafoucrière <email@hidden>)

  • Prev by Date: Re: fetch loop
  • Next by Date: Re: OT: Is used WO 5.3.1 in production (deployment)?
  • Previous by thread: Re: fetch loop
  • Next by thread: Re: fetch loop
  • Index(es):
    • Date
    • Thread