Non blocking stream reader

class bci_framework.framework.nbstreamreader.NonBlockingStreamReader(stream)[source]

Artificial timeout for blocking process.

Parameters

stream – The stream to read from, usually a process’ stdout or stderr.

readline(timeout: Optional[int] = 0.1)None[source]

Read lines from queue object.

stop()None[source]

Stop the readline.