summaryrefslogtreecommitdiff
path: root/core/ops.rs
diff options
context:
space:
mode:
Diffstat (limited to 'core/ops.rs')
-rw-r--r--core/ops.rs5
1 files changed, 1 insertions, 4 deletions
diff --git a/core/ops.rs b/core/ops.rs
index 13f001146..6b2c06397 100644
--- a/core/ops.rs
+++ b/core/ops.rs
@@ -80,7 +80,7 @@ where
}
}
-pub type PromiseId = u64;
+pub type PromiseId = i32;
pub type OpAsyncFuture = OpCall<(PromiseId, OpId, OpResult)>;
pub type OpFn = dyn Fn(Rc<RefCell<OpState>>, OpPayload) -> Op + 'static;
pub type OpId = usize;
@@ -111,9 +111,6 @@ impl<'a, 'b, 'c> OpPayload<'a, 'b, 'c> {
pub enum Op {
Sync(OpResult),
Async(OpAsyncFuture),
- /// AsyncUnref is the variation of Async, which doesn't block the program
- /// exiting.
- AsyncUnref(OpAsyncFuture),
NotFound,
}