Add nonblocking root scheme
This commit is contained in:
parent
dd1c0ca01d
commit
8fd25ee318
5 changed files with 20 additions and 31 deletions
|
@ -41,7 +41,7 @@ impl Scheme for DebugScheme {
|
|||
///
|
||||
/// Returns the number of bytes read
|
||||
fn read(&self, _file: usize, buf: &mut [u8]) -> Result<usize> {
|
||||
Ok(INPUT.call_once(init_input).receive_into(buf))
|
||||
Ok(INPUT.call_once(init_input).receive_into(buf, true))
|
||||
}
|
||||
|
||||
/// Write the `buffer` to the `file`
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue