diff --git a/README-zh.md b/README-zh.md index ac03a5b..a43f771 100644 --- a/README-zh.md +++ b/README-zh.md @@ -15,7 +15,7 @@ ## 主要特点 - **单例设计**: 实现了单例模式,提供了一个统一且单一的实例,用于简化事件管理。 -- **事件队列**: 支持事件处理程序排队,使得可以在相应的事件创建之前添加处理程序。 +- **事件队列**: 当消息发送时,如果当前没有订阅者,消息将被暂时存储在任务队列中,直至有订阅者时才会被释放。同时,任务队列会优化执行相同任务的操作 - **轻松的事件发射**: 轻松发射带有关联数据和可选回调函数的事件。 - **事件注册**: 简单注册特定事件的处理程序,便于响应应用程序中的各种场景。 - **维护**: 提供了删除特定事件处理程序、清除所有处理程序和重置整个事件管理器的方法。 diff --git a/README.md b/README.md index fa8ac28..bf7479c 100644 --- a/README.md +++ b/README.md @@ -15,7 +15,7 @@ ## Key Features - **Singleton Design**: Implements a singleton pattern, providing a unified and singular instance for streamlined event management. -- **Event Queues**: Facilitates event handler queuing, enabling the addition of handlers even before the corresponding events are created. +- **Event Queues**: When a message is emited, and there are no subscribers at the moment, the message will be temporarily queued until a subscription is established. Simultaneously, the task queue optimizes the execution of identical tasks. - **Effortless Event Emission**: Easily emits events with associated data and optional callback functions. - **Event Registration**: Simple registration of handlers for specific events, making it easy to respond to diverse scenarios in your application. - **Maintenance**: Offers methods to remove specific event handlers, clear all handlers, and reset the entire event manager. diff --git a/package.json b/package.json index dfc34da..32bdb8f 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@mwx47/teleport", - "version": "1.2.1", + "version": "1.2.3", "description": "A library for managing and communicating events in your application through a singleton pattern. This pattern ensures that there is a single instance of the event manager, making it easy to coordinate and handle events across different parts of your codebase.", "main": "./src/index.js", "keywords": [