threadpool
threadpool copied to clipboard
Close func may cause a panic
//TODO: need to check the existing /running task before closing the threadpool