Wait until node's output is readable. timeoutms: timeout in ms or None to wait indefinitely. returns: result of poll()
( self, timeoutms=None )
| 288 | self.terminate() |
| 289 | |
| 290 | def waitReadable( self, timeoutms=None ): |
| 291 | """Wait until node's output is readable. |
| 292 | timeoutms: timeout in ms or None to wait indefinitely. |
| 293 | returns: result of poll()""" |
| 294 | if len( self.readbuf ) == 0: |
| 295 | return self.pollOut.poll( timeoutms ) |
| 296 | return None |
| 297 | |
| 298 | def sendCmd( self, *args, **kwargs ): |
| 299 | """Send a command, followed by a command to echo a sentinel, |