rugby asynchronous
[1/9] from: reviewer:free at: 28-Apr-2003 22:15
Hi,
I want to make non blocking transaction.
Considering the following example:
Server:
--------
do %rugby.r
serve [wait]
Client:
-------
do %rugby.r
rexec/deferred [wait 10]
I have to wait 10 seconds as if deferred was useless.
Am I missing something?
Thanks,
Gregory.
[2/9] from: maarten:koopmans:surfnet:nl at: 28-Apr-2003 23:24
I tested it myself and you're not missing something.
Strange.... it looks like this doesn't work anymore.
Sad thing: I won't have time to fix this particular issue.
--Maarten
[reviewer--free--fr] wrote:
[3/9] 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
[4/9] from: greggirwin:mindspring at: 28-Apr-2003 18:04
Hi Maarten,
MK> I tested it myself and you're not missing something.
MK> Strange.... it looks like this doesn't work anymore.
Then I must be missing something. :) Is this only for the latest
version, or is /deferred not working for others as well. I'm using it
in my project, so I'll need to be very careful if it's version
specific.
-- Gregg
[5/9] from: maarten:koopmans:surfnet:nl at: 29-Apr-2003 7:26
Hi Gregg,
I used Core 2.5.5 on WIndows with the currenly online version of Rugby.
What are you using?
--Maarten
Gregg Irwin wrote:
[6/9] from: greggirwin::mindspring::com at: 29-Apr-2003 2:06
Hi Maarten,
MK> I used Core 2.5.5 on WIndows with the currenly online version of Rugby.
MK> What are you using?
Rugby 4.3.1 and View 1.2.8 (or View Encap).
-- Gregg
[7/9] from: reviewer:free at: 29-Apr-2003 11:25
Hi,
It blocks using Core 2.5.5 on Solaris...
Gregory.
Quoting Gregg Irwin <[greggirwin--mindspring--com]>:
[8/9] from: Maarten:Koopmans:surfnet:nl at: 29-Apr-2003 11:45
That must be an old version as I dropped the numbers lona ago ;-)
Can you try and replace it with the current one (API compatible) and let
me know the results?
In the worst case I'll do a rollback with your version.
--Maarten
Gregg Irwin wrote:
[9/9] from: greggirwin:mindspring at: 29-Apr-2003 9:39
Hi Maarten,
MK> That must be an old version as I dropped the numbers lona ago ;-)
MK> Can you try and replace it with the current one (API compatible) and let
MK> me know the results?
Yes, but it will have to wait a bit. We're going beta so I don't want
to mess with that just now. :) I'll try to remember to do it in a week
or two, but ping me if you still want me to do it by then so I don't
forget.
-- Gregg