summaryrefslogtreecommitdiff
path: root/runtime/worker.rs
diff options
context:
space:
mode:
authorNayeem Rahman <nayeemrmn99@gmail.com>2022-05-10 10:26:57 +0100
committerGitHub <noreply@github.com>2022-05-10 11:26:57 +0200
commitcb884de2e92a051785ad4bd741153e69d9d2316c (patch)
treeeca083d597a12f5db69dbbc493f02b1e3e759c78 /runtime/worker.rs
parent2f7f41533bf3059bba55b206282080fc70a3eec8 (diff)
fix(runtime/web_worker): Use biased select when getting module result (#14553)
Diffstat (limited to 'runtime/worker.rs')
-rw-r--r--runtime/worker.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/runtime/worker.rs b/runtime/worker.rs
index 23fe8e4c0..7165b04f0 100644
--- a/runtime/worker.rs
+++ b/runtime/worker.rs
@@ -304,6 +304,7 @@ impl MainWorker {
) -> T {
loop {
tokio::select! {
+ biased;
result = &mut fut => {
return result;
}