method Worker.prototype.destroyWorker.prototype.destroy(signal?: string): voidDeprecatedParametersoptionalsignal: stringReturn Typevoid