]> git.ardis.lu - 4-byte-gen/commitdiff
Implement pausing
authorArdis Lu <ardisglu@gmail.com>
Fri, 24 Mar 2023 05:46:32 +0000 (22:46 -0700)
committerArdis Lu <ardisglu@gmail.com>
Fri, 24 Mar 2023 05:46:32 +0000 (22:46 -0700)
index.html

index e41690f8bb581925b127201d6d8dd243b4de2e14..4fc714e78731b280f4746cacf343706270304a14 100644 (file)
       }
 
       startAll.disabled = false;
+      pauseAll.disabled = false;
       outputContainer.style.display = 'block';
       status.textContent = 'Press the "START ALL" button to begin finding optimized function names for all functions, or press "START" on individual functions.';
     }
     }
 
     function handlePauseAll(e) {
-
+      for (const row of state.values()) {
+        row.worker.terminate();
+        row.status = 'Paused';
+      }
+      updateUi(state);
     }
 
     /* Wire up the UI to the business logic */
This page took 0.039624 seconds and 4 git commands to generate.