rudus/sandbox.ld

17 lines
259 B
Plaintext
Raw Normal View History

2025-06-27 03:28:17 +00:00
fn simple_reporter () -> {
print! (self (), msgs ())
}
2025-06-27 00:30:40 +00:00
2025-06-27 03:28:17 +00:00
fn hanger () -> hanger ()
let foo = spawn! (hanger)
let bar = spawn! (simple_reporter)
let baz = spawn! (fn () -> panic! :oops)
send (foo, [:foo, :bar, :baz])
send (bar, (1, 2, 3))
2025-06-27 00:30:40 +00:00
yield! ()
:done