[REBOL] A better way?
From: tbrownell::l3technology::com at: 6-Feb-2003 10:04
Is the following bit o' code the most efficient way of continuously "doing"
things (In this case, continuosly monitoring yahoo and rebol web servers
with forever loops)?
What's happening here anyway? You would think that it would hit a forever
loop and that would be the end of that script. Is it generating multiple
threads with each button or ?
=TBrownell
rebol []
view layout [
aa: box blue 25x25
btn "Yahoo" [forever [wait 10 either error? try [read http://www.yahoo.com]
[aa/color: red show aa]
[aa/color: green show aa]
]
]
btn "Rebol" [forever [wait 10 either error? try [read http://www.rebol.com]
[aa/color: red show aa]
[aa/color: green show aa]
]
]
btn "Other" [print "something else"]
]
P.S. Rebol website visitor logs may be artificially heightened ;)