4 ms·
eventstreams are handy for handling a stream of events (user actions in UI, streaming API client), but when a request gets a single event as a response (ajax/ht
by findjashua 11y ago
eventstreams are handy for handling a stream of events (user actions in UI, streaming API client), but when a request gets a single event as a response (ajax/http), async/await looks like a much simpler option (functions return the output, instead of taking a handler to process it). Thoughts?
PS: enjoyed your talk 'user is a function', looking forward to how cycle evolves.
- staltz 11y agoWhat is an event? Put differently: what cannot be an event in your application?
- findjashua 11y agoWhile events can be used anywhere in your applications, they're not the best option in my opinion. I still think functions should take an input and 'return' the output, not take a handler function to process it.