iOS Javascript Workers High CPU after terminate()
问题 I have a complex javascript function which could take 1 second, or many minutes sending an answer. So I created a Worker which is working, I'm calling this function from my UIWebView in Swift (stringByEvaluatingJavaScriptFromString). I'm waiting only 5 seconds (timeout created in the same Javascript), after that I terminate the worker (job.terminate()), and I start a different one with other parameters (simplier), which takes only 1 second in show the answer. The thing is, the first worker