17 lines
259 B
Plaintext
17 lines
259 B
Plaintext
fn simple_reporter () -> {
|
|
print! (self (), msgs ())
|
|
}
|
|
|
|
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))
|
|
|
|
yield! ()
|
|
|
|
:done
|