Edit

kc3-lang/kc3/test/ikc3/thread.out.expected

Branch :

  • test/ikc3/thread.out.expected
  • 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