Home > @esengine/ecs-framework-monorepo > ECSFluentAPI > emitAsync
ECSFluentAPI.emitAsync() method
异步触发事件
Signature:
typescript
emitAsync<T>(eventType: string, event: T): Promise<void>;
Parameters
Parameter | Type | Description |
---|---|---|
eventType | string | 事件类型 |
event | T | 事件数据 |
Returns:
Promise<void>