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