

def readStdOut(self):
    while True:
        data = os.read(self.proc.stdout.fileno(), (2 ** 15))
        if ('' == data):
            self.proc.stdout.close()
            self.appendData('\n-- Terminated -- \n')
            self.statusBar.stop = True
            break
        else:
            sublime.set_timeout(functools.partial(self.appendData, data), 0)

dataset/ETHPy150Open francodacosta/composer-sublime/composer.py Worker.readStdOut/original