Make Deno multithreaded.

By using the tokio default runtime.

This patch makes all of the ops thread safe.

Adds libdeno to JS globals to make for easier testing.

Preliminary work for #733.
This commit is contained in:
Ryan Dahl 2018-09-18 11:53:16 -07:00
parent 7c128df4a0
commit 4fd2b19f64
7 changed files with 392 additions and 210 deletions

View file

@ -56,8 +56,6 @@ declare global {
export const window = globalEval("this");
window.window = window;
window.libdeno = null;
window.setTimeout = timers.setTimeout;
window.setInterval = timers.setInterval;
window.clearTimeout = timers.clearTimer;