use crate::*;
/// A wrapper around an event callback.
///
/// Stores the event name and a shared reference to the callback closure.
/// Uses `Rc<UnsafeCell<>>` instead of `Rc<RefCell<>>` to avoid runtime
/// borrow checking overhead in the single-threaded WASM context.
/// The `Rc` provides automatic memory management (freed when last reference drops).