Hash :
3217eaae
Author :
Thomas de Grivel
Date :
2024-12-09T12:03:55
if t = Thread.new(fn () { puts("ok from thread") ; :ok_from_thread }) do
Thread.delete(t)
end
ok from thread
:ok_from_thread
name = "Plop"
"Plop"
if t = Thread.new(fn () { puts("Hello #{name} from thread") ; :ok_from_thread }) do
Thread.delete(t)
end
Hello Plop from thread
:ok_from_thread