onebots
Version:
基于icqq的多例oneBot实现
13 lines (12 loc) • 327 B
TypeScript
export type LogLevel = "trace" | "debug" | "info" | "warn" | "error" | "fatal" | "mark" | "off";
export type Dispose = () => any;
export type MayBeArray<T extends any> = T | T[];
/**
* 异步锁---
*/
export declare class AsyncLock {
private _lock;
private _waitList;
lock(): Promise<void>;
unlock(): void;
}