cab
cab
DDeno
Created by cab on 5/25/2024 in #help
driving async ops in deno_core
fixed it by yielding to tokio
block_on(async {
tokio::task::yield_now().await;
poll_once(poll_fn(|cx| {
js.poll_event_loop(cx, PollEventLoopOptions::default())
}))
.await;
});
block_on(async {
tokio::task::yield_now().await;
poll_once(poll_fn(|cx| {
js.poll_event_loop(cx, PollEventLoopOptions::default())
}))
.await;
});
3 replies