@midwayjs/coreClassesDataListener版本:Next本页总览abstractDataListener <T>Index ConstructorsconstructorMethodsgetDatainitDataonDatastopConstructors constructornew DataListener<T>(): DataListener<T>Type parametersTMethods publicgetDatagetData(): TabstractinitDatainitData(): T | Promise<T>abstractonDataonData(callback: (data: T) => void): anypublicstopstop(): Promise<void>