diff --git a/src/promise.rs b/src/promise.rs index fb9cd7a..0040570 100644 --- a/src/promise.rs +++ b/src/promise.rs @@ -4,14 +4,12 @@ use std::sync::{Arc, Mutex}; use rhai::{Dynamic, NativeCallContextStore}; use rhai::{EvalAltResult, FnPtr}; -// TODO: This should not be public /// A struct that represents a function that will get called when the Promise is resolved. pub(crate) struct PromiseCallback { callback: Dynamic, following_promise: Arc>, } -// TODO: This should not be public /// Internal representation of a Promise. pub(crate) struct PromiseInner { pub(crate) callbacks: Vec,