mirror of
https://github.com/denoland/deno.git
synced 2024-11-29 16:30:56 -05:00
36e8c8dfd7
This commit adds op_read_sync and op_write_sync to core. These ops are similar to op_read and op_write, but they are synchronous. Just like the async ops, they operate on generic `deno_core::Resource` objects. These now have new `read_byob_sync` and `write_sync` methods, with default implementations throwing "NotSupported" errors, just like the async counterparts. There are no `write_all` or `read` equivalents, because the optimizations they unlock are not useful in synchronous contexts. |
||
---|---|---|
.. | ||
12_io.js | ||
Cargo.toml | ||
lib.rs | ||
README.md |
deno_io
This crate provides IO primitives for other Deno extensions, this includes stdio streams and abstraction over File System files.