summaryrefslogtreecommitdiff
path: root/cli/ops/process.rs
diff options
context:
space:
mode:
authorRyan Dahl <ry@tinyclouds.org>2020-04-23 05:51:07 -0400
committerGitHub <noreply@github.com>2020-04-23 11:51:07 +0200
commitd8711155ca20fb2907beed304557d0815ac56452 (patch)
tree410c23ed6d3e520a6b335b02577ad0b29b707cf4 /cli/ops/process.rs
parent10a174834e6e59ea055d6098a07b82a3854a2db9 (diff)
Rename deno_core::Isolate to deno_core::CoreIsolate (#4851)
Diffstat (limited to 'cli/ops/process.rs')
-rw-r--r--cli/ops/process.rs10
1 files changed, 6 insertions, 4 deletions
diff --git a/cli/ops/process.rs b/cli/ops/process.rs
index 72603f7a5..0384f5b39 100644
--- a/cli/ops/process.rs
+++ b/cli/ops/process.rs
@@ -4,7 +4,9 @@ use super::io::{std_file_resource, StreamResource, StreamResourceHolder};
use crate::op_error::OpError;
use crate::signal::kill;
use crate::state::State;
-use deno_core::*;
+use deno_core::CoreIsolate;
+use deno_core::ResourceTable;
+use deno_core::ZeroCopyBuf;
use futures::future::poll_fn;
use futures::future::FutureExt;
use futures::TryFutureExt;
@@ -14,7 +16,7 @@ use tokio::process::Command;
#[cfg(unix)]
use std::os::unix::process::ExitStatusExt;
-pub fn init(i: &mut Isolate, s: &State) {
+pub fn init(i: &mut CoreIsolate, s: &State) {
i.register_op("op_run", s.stateful_json_op2(op_run));
i.register_op("op_run_status", s.stateful_json_op2(op_run_status));
i.register_op("op_kill", s.stateful_json_op(op_kill));
@@ -58,7 +60,7 @@ struct ChildResource {
}
fn op_run(
- isolate: &mut deno_core::Isolate,
+ isolate: &mut CoreIsolate,
state: &State,
args: Value,
_zero_copy: Option<ZeroCopyBuf>,
@@ -172,7 +174,7 @@ struct RunStatusArgs {
}
fn op_run_status(
- isolate: &mut deno_core::Isolate,
+ isolate: &mut CoreIsolate,
state: &State,
args: Value,
_zero_copy: Option<ZeroCopyBuf>,