I would expect support from such a language to support me with I/O while I concentrate on my program. For example by providing an event loop.
Of course, if I need a more performant approach I would switch to a low level language.
https://docs.toit.io/language/tasks
Synchronization: https://libs.toit.io/monitor/library-summary
For example the GPIO pin has a wait_for method which pauses a task until a signal is seen. https://libs.toit.io/gpio/class-Pin
But surely quick "How to do Esp32 things" mirroring this http://docs.micropython.org/en/latest/esp32/quickref.html would be very nice.
Without it you need to look for tutorials and documentation tree or even documentation for specific packages providing embedded functionalities.
The next best thing is currently probably this tutorial: https://docs.google.com/document/d/1K-TYea7jbYfj2ecMUmr0T0zd...
https://docs.toit.io/peripherals
They also have nice simple tutorials.
Not sure about the event loop. I don't think it's even based. Looks more like "immediate mode".
I would expect support from such a language to support me with I/O while I concentrate on my program. For example by providing an event loop.
Of course, if I need a more performant approach I would switch to a low level language.