let mut value_opt = Some(value); oneshot::spawn(poll_fn(move || { blocking(|| { let value = value_opt.take().unwrap(); ... ret }) }, &mut exec)
-
-
Show this threadThanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
AsyncWrite 実装してるじゃんと思って喜び勇んで poll_read 読んだらカレントスレッドがブロックするの、いまいち納得いかないんですが、そういうもんですかね……
-
blocking()側はしょうがないとして、Stdin側の実装は確かにカレントスレッドをブロックさせないことを前提としてくれても良さそうですね…
End of conversation
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.