Debounce VPN Service tasks (start / stop)
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