Sign in
fuchsia
/
fuchsia
/
refs/heads/releases/dogfood
/
.
/
third_party
/
rust_crates
/
vendor
/
piper
/
examples
/
foo.rs
blob: 080add92c1361e923e7f2e3aebe6aa791f1c7a66 [
file
] [
log
] [
blame
] [
edit
]
use
futures
::
prelude
::*;
fn
main
()
->
Result
<(),
Box
<
dyn std
::
error
::
Error
>>
{
smol
::
run
(
async
{
let
(
mut
s
,
mut
r
)
=
piper
::
chan
(
10
);
s
.
send_all
(&
mut
stream
::
once
(
async
{
Ok
(
7i32
)
}).
boxed
()).
await
?;
dbg
!(
r
.
next
().
await
);
Ok
(())
})
}