asdf
This commit is contained in:
parent
0ecaaaa258
commit
1fcd5b0f98
|
@ -1083,6 +1083,16 @@ fn heed! {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
fn send_sync {
|
||||||
|
"Sends the message to the specified process, and waits for a response in the form of a `(:reply, response)` tuple."
|
||||||
|
(pid, msg) -> {
|
||||||
|
send (pid, msg)
|
||||||
|
receive {
|
||||||
|
(:reply, res) -> res
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
& TODO: make this more robust, to handle multiple pending requests w/o data races
|
& TODO: make this more robust, to handle multiple pending requests w/o data races
|
||||||
fn request_fetch! {
|
fn request_fetch! {
|
||||||
(pid as :keyword, url as :string) -> {
|
(pid as :keyword, url as :string) -> {
|
||||||
|
|
Binary file not shown.
|
@ -5,14 +5,10 @@ use std::rc::Rc;
|
||||||
use std::cell::RefCell;
|
use std::cell::RefCell;
|
||||||
|
|
||||||
const DEBUG_SCRIPT_COMPILE: bool = false;
|
const DEBUG_SCRIPT_COMPILE: bool = false;
|
||||||
const DEBUG_SCRIPT_RUN: bool = true;
|
const DEBUG_SCRIPT_RUN: bool = false;
|
||||||
const DEBUG_PRELUDE_COMPILE: bool = false;
|
const DEBUG_PRELUDE_COMPILE: bool = false;
|
||||||
const DEBUG_PRELUDE_RUN: bool = false;
|
const DEBUG_PRELUDE_RUN: bool = false;
|
||||||
|
|
||||||
// #[cfg(target_family = "wasm")]
|
|
||||||
// #[global_allocator]
|
|
||||||
// static ALLOCATOR: talc::TalckWasm = unsafe { talc::TalckWasm::new_global() };
|
|
||||||
|
|
||||||
mod io;
|
mod io;
|
||||||
use io::send_err_to_ludus_console;
|
use io::send_err_to_ludus_console;
|
||||||
|
|
||||||
|
@ -40,7 +36,6 @@ mod errors;
|
||||||
use crate::errors::{lexing, parsing, validation};
|
use crate::errors::{lexing, parsing, validation};
|
||||||
|
|
||||||
mod panic;
|
mod panic;
|
||||||
mod keywords;
|
|
||||||
|
|
||||||
mod js;
|
mod js;
|
||||||
use crate::js::*;
|
use crate::js::*;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user