From 55b43cb4aaeddcd9990b8e69841f120103c9fb86 Mon Sep 17 00:00:00 2001 From: Jonathan Johnson Date: Thu, 11 Jan 2024 09:48:39 -0800 Subject: [PATCH] Renamed example Also fixed a comment I missed updating --- examples/{invalidation-guard.rs => invalidation-batch.rs} | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) rename examples/{invalidation-guard.rs => invalidation-batch.rs} (96%) diff --git a/examples/invalidation-guard.rs b/examples/invalidation-batch.rs similarity index 96% rename from examples/invalidation-guard.rs rename to examples/invalidation-batch.rs index f8e3ba4..617c6c0 100644 --- a/examples/invalidation-guard.rs +++ b/examples/invalidation-batch.rs @@ -22,8 +22,8 @@ fn background_task(progress_a: Dynamic, progress_b: Dynamic) { InvalidationBatch::batch(|_batch| { // This set of operations has a net effect of incrementing // progress_a, and adding 5 to progress_b. But the operations are - // are done by first adding double the amount, waiting for a bit, - // then subtracting to get back to the desired loop behavior. + // are done by incrementing by ones and twos over the course of + // 200ms. // // This is a convoluted way to simulate having a complex operation // in a background thread that a user wishes to synchronize the user