Skip to content

Debounce VPN Service tasks (start / stop)

cyberta requested to merge debounce_Service_tasks into main

Implement a custom ThreadpoolExecutor with a single worker thread and a limited queue for 2 pending tasks. Between each task the threadpool executor waits for 500ms (default). The oldest pending task will be removed from the queue in favor of a new submitted task in case the queue limit has been reached.

Edited by cyberta

Merge request reports

Loading