summaryrefslogtreecommitdiffstatshomepage
path: root/zephyr/modmachine.h
diff options
context:
space:
mode:
authorJan Pochyla <jpochyla@gmail.com>2017-02-24 14:14:08 +0100
committerPaul Sokolovsky <pfalcon@users.sourceforge.net>2017-03-29 18:18:35 +0300
commite9d7c3ea0ef7b726b093b1abf9cece0c9146d635 (patch)
tree3c1b6ca7da7408f01242920f5010e02bc77d5e30 /zephyr/modmachine.h
parent6bfb344a808081aaaf883b7576699e05d9a86882 (diff)
downloadmicropython-e9d7c3ea0ef7b726b093b1abf9cece0c9146d635.tar.gz
micropython-e9d7c3ea0ef7b726b093b1abf9cece0c9146d635.zip
modutimeq: Add peektime() function (provisional).
Allows to get event time for a head item in the queue. The usecase if waiting for the next event *OR* I/O completion. I/O completion may happen before event triggers, and then wait should continue for the remaining event time (or I/O completion may schedule another earlier event altogether). The new function has a strongly provisional status - it may be converted to e.g. peek() function returning all of the event fields, not just time.
Diffstat (limited to 'zephyr/modmachine.h')
0 files changed, 0 insertions, 0 deletions