Skip to content

Commit

Permalink
update: readme
Browse files Browse the repository at this point in the history
  • Loading branch information
weixiangmeng521 committed Dec 27, 2023
1 parent c46f72d commit d1b1e99
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README-zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
## 主要特点

- **单例设计**: 实现了单例模式,提供了一个统一且单一的实例,用于简化事件管理。
- **事件队列**: 支持事件处理程序排队,使得可以在相应的事件创建之前添加处理程序。
- **事件队列**: 当消息发送时,如果当前没有订阅者,消息将被暂时存储在任务队列中,直至有订阅者时才会被释放。同时,任务队列会优化执行相同任务的操作
- **轻松的事件发射**: 轻松发射带有关联数据和可选回调函数的事件。
- **事件注册**: 简单注册特定事件的处理程序,便于响应应用程序中的各种场景。
- **维护**: 提供了删除特定事件处理程序、清除所有处理程序和重置整个事件管理器的方法。
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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": [
Expand Down

0 comments on commit d1b1e99

Please sign in to comment.