From 7c74f6b5da724e05d9d2ecd48c77cce375d10b04 Mon Sep 17 00:00:00 2001 From: Simon Gardling Date: Tue, 4 Mar 2025 16:33:42 -0500 Subject: [PATCH] elo: add comment about rayon and live leaderboard --- src/elo.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/elo.rs b/src/elo.rs index 1fefe4e..a3ee1a2 100644 --- a/src/elo.rs +++ b/src/elo.rs @@ -145,6 +145,9 @@ impl PlayerArena { .expect("invalid ProgressStyle"), ) .map(|((i, j), (p1, p2))| (i, j, Self::play_two_inner(p1, p2))) + // TODO! is there some way in rayon to allow `self.process_outcome` to be run on the main thread + // as soon as Self::play_two_inner completes? This would allow maybe a live leaderboard to be displayed + // while players are playing .collect::>() // collect and process the outcomes of all the games .into_iter()