Refactor poll_oneoff and return stdin if immediately readable.

This commit is contained in:
Marcin Mielniczuk
2019-12-08 20:37:14 +01:00
parent 4695c95374
commit 98e84ae487
3 changed files with 95 additions and 66 deletions

View File

@@ -41,5 +41,5 @@ pub mod wasi32;
pub use ctx::{WasiCtx, WasiCtxBuilder};
pub use sys::preopen_dir;
pub type Error = error::Error;
pub(crate) type Result<T> = std::result::Result<T, Error>;
pub use error::Error;
pub(crate) use error::Result;