Thread with 13 posts
jump to expanded postit extremely annoys me that you can have event-driven systems where you trigger an event and set up the event handler after the fact, hoping the event hasn’t actually happened yet
yes multiple early iPhone OS apps do this, why do you ask,
my modest proposal is that such systems should check if appropriate event handlers are registered before you do something that can produce an event, and if they aren’t, refuse to deliver the event later, even if handlers were set up in the meantime 😈
@hikari just give the receiver control if buffering is plausible/reasonable https://developer.mozilla.org/en-US/docs/Web/API/MessagePort/start
@hikari@social.noyu.me it'll just execute whenever it feels like it
@hikari this is a very Hyrum's Law kind of problem :/
@saagar same runloop iteration… usually. ah, are you going to tell me there’s some guarantee about this? :)
@saagar something I’m not sure about is how NSNotificationCenter interacts with run loops.
@saagar ahh okay. touchHLE currently has an ad-hoc notification queue inside the “movie player”, simply because it never worked when I posted the notification immediately, but maybe I actually should put that queueing inside NSNotificationCenter itself…