Synchronous event-handling mechanism