rename flowy-dispatch structs

This commit is contained in:
appflowy
2021-12-04 11:26:17 +08:00
parent 76691e3e8c
commit c649673b2b
8 changed files with 40 additions and 40 deletions

View File

@ -8,9 +8,9 @@ async fn test() {
env_logger::init();
let event = "1";
let dispatch = Arc::new(EventDispatch::construct(|| vec![Module::new().event(event, hello)]));
let dispatch = Arc::new(EventDispatcher::construct(|| vec![Module::new().event(event, hello)]));
let request = ModuleRequest::new(event);
let _ = EventDispatch::async_send_with_callback(dispatch.clone(), request, |resp| {
let _ = EventDispatcher::async_send_with_callback(dispatch.clone(), request, |resp| {
Box::pin(async move {
dbg!(&resp);
})