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

[REBOL] Re: REBOL multithreading

From: carl:cybercraft at: 14-Feb-2002 20:39

On 14-Feb-02, Alex Liebowitz wrote:
> Is it possible to run two functions concurrently in REBOL?
Not sure if there's any way to do it with functions, (I certainly wish there was), but a semblence of multi-tasking can be achieved using 'feel in a View layout... win-1: layout [ a: field "1" rate 1 feel [ engage: [ a/text: to-string (to-integer a/text) + 1 show a ] ] button "Other Window" [view/new win-2] ] win-2: layout [ b: field "1" rate 10 feel [ engage: [ b/text: to-string (to-integer b/text) + 1 show b ] ] ] view win-1 It stops when a window is closed though. ): -- Carl Read