mirror of
https://github.com/denoland/deno.git
synced 2024-12-27 09:39:08 -05:00
e574437922
The issue is solved by proxying websocket messages over a pair of `futures::mpsc::unbounded` channels. As these are are implemented in the 'futures' crate, they can't participate in Tokio's cooperative task yielding.
6 lines
138 B
JavaScript
6 lines
138 B
JavaScript
for (let i = 0; i < 128; i++) {
|
|
console.log(i);
|
|
debugger;
|
|
}
|
|
await new Promise((res, _) => setTimeout(res, 100));
|
|
console.log("done");
|