pollen-robotics / rosa

Rosa : le robot qui ramasse des objets
2 stars 1 forks source link

Async event loops for Python API #4

Open davidjsherman opened 3 years ago

davidjsherman commented 3 years ago

Like #3, the current API requires students to write an explicit busy loop, while Python since 3.5 provides the async mechanism for implementing event loops using tasks and coroutines.

Improving this API would foster an event-driven programming style, where students define

Predefined events could be as in #3.

It may be useful to provide a set of Rosa-specific decorators to simplify the coding task for students.