fix(runtime/web_worker): Use biased select when getting module result (#14553)

This commit is contained in:
Nayeem Rahman 2022-05-10 10:26:57 +01:00 committed by GitHub
parent 2f7f41533b
commit cb884de2e9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 28 additions and 3 deletions

View file

@ -304,6 +304,7 @@ impl MainWorker {
) -> T {
loop {
tokio::select! {
biased;
result = &mut fut => {
return result;
}