22 lines
268 B
Rust
22 lines
268 B
Rust
// xfail-pretty
|
|
|
|
use std;
|
|
use std::timer::sleep;
|
|
use std::uv;
|
|
|
|
proto! oneshot (
|
|
waiting:send {
|
|
signal -> !
|
|
}
|
|
)
|
|
|
|
fn main() {
|
|
let (c, p) = oneshot::init();
|
|
|
|
assert !pipes::peek(&p);
|
|
|
|
oneshot::client::signal(c);
|
|
|
|
assert pipes::peek(&p);
|
|
}
|