3 ms·
Okay -- this code is pathologically minimal. If you modify it to use events on the web, will your work extend to all the other platforms?
by hyperhello 1y ago
Okay -- this code is pathologically minimal. If you modify it to use events on the web, will your work extend to all the other platforms?
- socalgal2 1y agoYes, because it's trivial to make an event based loop from a polling loop but not visa-versa. The difference is that an event based loop needs to give up control to the OS. A polling loop does not. So if you have a polling OS you just write few lines to emit your own loop event.