- published version 11.1.0, 2 years ago
```typescript const mutex: MutexBase; // 获取 key 等待锁, (最多尝试获取30次,每次间隔在10~20毫秒),获取不到则抛出异常 const unlock = await mutex.lock({ key: 'key', tryCount: 30, sleepRange: [10, 20] }); await unlock(); // 释放锁
published version 11.4.0, 9 months ago- published version 11.93.21, 7 months ago
- published version 11.34.5, 8 months ago
- published version 4.15.7, 2 years ago
- published version 11.23.10, 8 months ago
- published version 11.18.3, 8 months ago
```typescript const dbFactory: DbFactoryBase;
published version 11.24.8, a year ago- published version 5.14.1, 2 years ago
- published version 11.37.8, 8 months ago
- published version 4.4.1, 2 years ago
```typescript const rpc: RpcBase; const mockResp: RpcResponse<T>; const resp = await rpc.call<T>({ body: {}, // 请求内容 header: {}, // 请求头 isThrow: true, // 默认false 当为true时 如果返回结果的错误码不为0 则直接抛错 mock: mockResp, // 当该字段有效时 请求直接返回该值 r
published version 11.28.7, a year ago- published version 11.3.1, a year ago
- published version 3.0.0, 2 years ago
```typescript const configLoader: ConfigLoaderBase; const res = await configLoader.load({ app: 服务[可选], name: '模型名', projectNo: 项目编号[可选], typer: 模型, }); ```
published version 11.14.1, 10 months ago- published version 11.9.1, 8 months ago
- published version 6.11.1, 2 years ago