Hello!
I am very new to Racket and trying to use some samples

==== file  th.rkt ========
#lang racket/base

(thread (lambda ()
          (for ([i 10])
            (sleep 2)
            (printf "thread 1\n"))))

(thread (lambda ()
          (for ([i 20])
            (sleep 1)
            (printf "thread 2\n"))))
====================

After compile 
raco exe th.rkt

application gives only:

bash-3.2$ ./th
#<thread:...llo-world/th.rkt:3:8>
#<thread:...llo-world/th.rkt:8:8>

Can you please explain whats wrong with the code ?

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to