Skip to content

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>

基于 MIT 许可证发布