update api docs

This commit is contained in:
Github Build Bot
2022-04-02 17:31:48 +00:00
parent 520099aaba
commit c1a877489b
24 changed files with 502 additions and 728 deletions

View File

@@ -44,7 +44,7 @@ public function packModule(array $module, string $target): bool
## unpackModule
```php
public function unpackModule(mixed $module, array $options): array|false
public function unpackModule(array|Iterator $module, array $options): array|false
```
### 描述
@@ -55,11 +55,11 @@ public function unpackModule(mixed $module, array $options): array|false
| 名称 | 类型 | 描述 |
| -------- | ---- | ----------- |
| module | mixed | |
| module | array|Iterator | 模块信息 |
| options | array | |
### 返回
| 类型 | 描述 |
| ---- | ----------- |
| array|false | |
| array|false | 返回解包的信息或false |

View File

@@ -3,7 +3,7 @@
## workerAction
```php
public function workerAction(mixed $src_worker_id, mixed $data): mixed
public function workerAction(int $src_worker_id, array $data): mixed
```
### 描述
@@ -14,8 +14,8 @@ Worker 进程间通信触发的动作类型函数
| 名称 | 类型 | 描述 |
| -------- | ---- | ----------- |
| src_worker_id | mixed | |
| data | mixed | |
| src_worker_id | int | 源 Worker 进程 ID |
| data | array | 数据 |
### 返回
@@ -27,7 +27,7 @@ Worker 进程间通信触发的动作类型函数
## sendActionToWorker
```php
public function sendActionToWorker(mixed $worker_id, mixed $action, mixed $data): mixed
public function sendActionToWorker(int $worker_id, string $action, mixed $data): mixed
```
### 描述
@@ -38,9 +38,9 @@ public function sendActionToWorker(mixed $worker_id, mixed $action, mixed $data)
| 名称 | 类型 | 描述 |
| -------- | ---- | ----------- |
| worker_id | mixed | |
| action | mixed | |
| data | mixed | |
| worker_id | int | 进程ID |
| action | string | 动作 |
| data | mixed | 参数 |
### 返回