threaded: rename SerialPortWorker -> ReaderThread
diff --git a/documentation/pyserial_api.rst b/documentation/pyserial_api.rst
index c23d837..4d7f3ba 100644
--- a/documentation/pyserial_api.rst
+++ b/documentation/pyserial_api.rst
@@ -969,7 +969,7 @@
.. class:: Protocol
- Protocol as used by the :class:`SerialPortWorker`. This base class provides empty
+ Protocol as used by the :class:`ReaderThread`. This base class provides empty
implementations of all methods.
@@ -1047,7 +1047,7 @@
is applied before sending ans also the newline is append.
-.. class:: SerialPortWorker(threading.Thread)
+.. class:: ReaderThread(threading.Thread)
Implement a serial port read loop and dispatch to a Protocol instance (like
the :class:`asyncio.Protocol`) but do it with threads.
@@ -1121,7 +1121,7 @@
sys.stdout.write('port closed\n')
ser = serial.serial_for_url('loop://', baudrate=115200, timeout=1)
- with SerialPortWorker(ser, PrintLines) as protocol:
+ with ReaderThread(ser, PrintLines) as protocol:
protocol.write_line('hello')
time.sleep(2)