From fab0204cbf20cc1be7874266325bf258fe0ecaca Mon Sep 17 00:00:00 2001 From: Ryan Dahl Date: Wed, 15 Apr 2020 20:43:19 -0400 Subject: Make writeSync, readSync, seekSync, openSync, isatty proper synchronous syscalls (#4762) --- core/ops.rs | 3 +++ 1 file changed, 3 insertions(+) (limited to 'core') diff --git a/core/ops.rs b/core/ops.rs index 6b1aec6ab..16807196e 100644 --- a/core/ops.rs +++ b/core/ops.rs @@ -17,6 +17,9 @@ pub(crate) type PendingOpFuture = pub type OpResult = Result, E>; +// TODO(ry) Op::Async should be Op::Async(Pin>>) +// The error should be encoded in the Buf. Notice how Sync ops do not return a +// result. The Sync and Async should be symmetrical! pub enum Op { Sync(Buf), Async(OpAsyncFuture), -- cgit v1.2.3