EventEmitter icon indicating copy to clipboard operation
EventEmitter copied to clipboard

Simple EventEmitter with multiple listeners

Results 7 EventEmitter issues
Sort by recently updated
recently updated
newest added

У методі once ми створюємо обгортку для переданої функції, щоб видаляти цю функції з події після першого її застосування, потім записуємо цю обгортку до хеш-таблиці wrappers та використовуємо метод on,...

Fix an error for the `listeners` method when the name doesn't exist in events

Simple JS-styled EventEmitter in C++ Supports canceling single subscription but with different contract because of C++'s lambdas incomparability. Everything else among the implemented features works as expected. Requires C++20(g++ -std=gnu++2a)

I wrote [this](https://play.rust-lang.org/?version=stable&mode=debug&edition=2018&gist=a1af8adf8a8a0640aaa9ddacca8b172e) based on [this](https://github.com/HowProgrammingWorks/EventEmitter/tree/master/Rust), but did not get how the `pub fn on(&mut self, event: T, handler: F)` is working, and how it got fired by calling `handler(&payload)`...

Для реализации из https://github.com/HowProgrammingWorks/EventEmitter/blob/master/JavaScript/a-prod.js при помощи строенной библиотеки https://nodejs.org/api/assert.html

Bumps [@eslint/plugin-kit](https://github.com/eslint/rewrite) from 0.2.1 to 0.2.3. Release notes Sourced from @​eslint/plugin-kit's releases. plugin-kit: v0.2.3 0.2.3 (2024-11-14) Dependencies The following workspace dependencies were updated devDependencies @​eslint/core bumped from ^0.8.0 to ^0.9.0...

dependencies