HF RL Explorer

Task: Fix BackgroundWorker Graceful Shutdown in WinForms Application

Task: Fix BackgroundWorker Graceful Shutdown in WinForms Application: a task in Terminal-Lego-15k (Harbor dataset). You need to solve a common multithreading problem in a C WinForms application: gracefully stopping a BackgroundWorker when the form is closing, without causing an…

The task

You need to solve a common multithreading problem in a C# WinForms application: gracefully stopping a `BackgroundWorker` when the form is closing, without causing an `ObjectDisposedException` or a deadlock.

Part of PrimeIntellect/Terminal-Lego-15k.