diff options
author | Ryan Dahl <ry@tinyclouds.org> | 2019-04-04 09:35:52 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-04-04 09:35:52 -0400 |
commit | 0a26230a8753c7bb4b0f318fb12af0b219337446 (patch) | |
tree | 7ee0ff64afc9867099fc34e7edb290dbb5ba2535 /core/isolate.rs | |
parent | 4520e5812e112dfb219f8eb6051ed8576141165a (diff) |
Improve docs in core (#2049)
Diffstat (limited to 'core/isolate.rs')
-rw-r--r-- | core/isolate.rs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/core/isolate.rs b/core/isolate.rs index f301ef680..a722f5a3c 100644 --- a/core/isolate.rs +++ b/core/isolate.rs @@ -68,8 +68,8 @@ pub trait Behavior { /// Isolate is created. fn startup_data(&mut self) -> Option<StartupData>; - /// Called whenever Deno.core.send() is called in JavaScript. zero_copy_buf - /// corresponds to the second argument of Deno.core.send(). + /// Called whenever Deno.core.dispatch() is called in JavaScript. zero_copy_buf + /// corresponds to the second argument of Deno.core.dispatch(). fn dispatch( &mut self, control: &[u8], @@ -82,9 +82,9 @@ pub trait Behavior { /// Tokio. The Isolate future complete when there is an error or when all /// pending ops have completed. /// -/// Ops are created in JavaScript by calling Deno.core.send(), and in Rust by -/// implementing Behavior::dispatch. An Op corresponds exactly to a Promise in -/// JavaScript. +/// Ops are created in JavaScript by calling Deno.core.dispatch(), and in Rust +/// by implementing deno::Behavior::dispatch. An Op corresponds exactly to a +/// Promise in JavaScript. pub struct Isolate<B: Behavior> { libdeno_isolate: *const libdeno::isolate, shared_libdeno_isolate: Arc<Mutex<Option<*const libdeno::isolate>>>, |