mirror of
https://github.com/denoland/deno.git
synced 2025-07-24 13:44:08 +00:00
fix(runtime/web_worker): Use biased select when getting module result (#14553)
This commit is contained in:
parent
2f7f41533b
commit
cb884de2e9
6 changed files with 28 additions and 3 deletions
|
@ -304,6 +304,7 @@ impl MainWorker {
|
|||
) -> T {
|
||||
loop {
|
||||
tokio::select! {
|
||||
biased;
|
||||
result = &mut fut => {
|
||||
return result;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue