Skip to content

Commit

Permalink
Do not map.
Browse files Browse the repository at this point in the history
  • Loading branch information
futursolo committed Aug 6, 2022
1 parent 87d7926 commit 4116d2b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/yew/src/virtual_dom/vlist.rs
Expand Up @@ -195,7 +195,8 @@ mod feat_ssr {
// Concurrently resolve all child futures.
let resolve_fur = if rest_children.len() <= 30 {
// 30 is selected by join_all to be deemed small.
future::join_all(rest_child_furs).map(|_| {}).left_future()
let rest_child_furs = future::join_all(rest_child_furs);
async move { rest_child_furs.map(|_| {}).await }.left_future()
} else {
let mut rest_child_furs: FuturesUnordered<_> = rest_child_furs.collect();
async move { while rest_child_furs.next().await.is_some() {} }
Expand Down

0 comments on commit 4116d2b

Please sign in to comment.