How can i get data without blocking?
问题 I have a serial port external device for getting data. I set two timers. One of them has to be for plotting(0.5sn) and the other for writing to a text file(15sn). Timers shouldn't get data from each other by list or array. Because sometimes I need to close plotting button. So I have to get data from the same resource (coming continuous data), right? But when I try this, it blocked. And how to get data without blocking? As an example the below code runs without blocking: # -*- coding: utf-8 -*