Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

[REBOL] Re: rugby asynchronous

From: greggirwin:mindspring at: 28-Apr-2003 15:18

Hi Gregory, rff> I want to make non blocking transaction. ... rff> I have to wait 10 seconds as if deferred was useless. rff> Am I missing something? Here's what I do. First, make your /deferred call and hold on to the ticket Rugby gives you back. ticket: rexec/deferred [your-func-here] Now, go off and do other things. Periodically, you do this: if result-available? ticket [ result: get-result ticket ticket: none ; << just so I know I've retrieved it. ;TBD act on the result ] -- Gregg