Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
8
Task/Events/Racket/events.rkt
Normal file
8
Task/Events/Racket/events.rkt
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
#lang racket
|
||||
|
||||
(define task (thread (lambda () (printf "Got: ~s\n" (thread-receive)))))
|
||||
|
||||
(thread-send task ; wait for it, then send it
|
||||
(sync (alarm-evt (+ 1000 (current-inexact-milliseconds)))))
|
||||
|
||||
(void (sync task)) ; wait for the task to be done before exiting
|
||||
Loading…
Add table
Add a link
Reference in a new issue