@property
    def in_waiting(self):
        flags = win32.DWORD()
        comstat = win32.COMSTAT()
        if not win32.ClearCommError(self._port_handle, ctypes.byref(flags), ctypes.byref(comstat)):
            raise SerialException('call to ClearCommError failed')
        return comstat.cbInQue
priorityFunction (item) -> priority
dataset/ETHPy150Open pyserial/pyserial/serial/serialwin32.py/Serial.in_waiting--crossover with--dataset/ETHPy150Open rlpy/rlpy/rlpy/Domains/PacmanPackage/util.py/PriorityQueueWithFunction.__init__