Skip to content

Home > @esengine/ecs-framework-monorepo > IEventBus > emitAsync

IEventBus.emitAsync() method

异步发射事件

Signature:

typescript
emitAsync<T>(eventType: string, data: T): Promise<void>;

Parameters

Parameter

Type

Description

eventType

string

事件类型

data

T

事件数据

Returns:

Promise<void>

基于 MIT 许可证发布