notify method

Future<T?> notify(
  1. MyEventQueueItem_c<T, T1> item
)

返回触发执行后的结果

Implementation

Future<T?> notify(MyEventQueueItem_c<T, T1> item) {
  list.add(item);
  onRunEvent();
  return item.result.future;
}