mirror of
https://github.com/denoland/deno
synced 2024-10-16 13:02:32 +00: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.
7 lines
138 B
JavaScript
7 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");
|