diff options
author | therealbush <therealbush@users.noreply.github.com> | 2022-04-23 15:32:41 -0700 |
---|---|---|
committer | therealbush <therealbush@users.noreply.github.com> | 2022-04-23 15:32:41 -0700 |
commit | adc29fb685307385cfa9ebb813ad2bfb18bb7776 (patch) | |
tree | 59b27215bb4c0db457f321d030fef9ba0c55b7fc /README.md | |
parent | c12696bd528e891b9da126d3b92f3db089b4b6e6 (diff) | |
download | eventbus-kotlin-adc29fb685307385cfa9ebb813ad2bfb18bb7776.tar.gz eventbus-kotlin-adc29fb685307385cfa9ebb813ad2bfb18bb7776.tar.bz2 eventbus-kotlin-adc29fb685307385cfa9ebb813ad2bfb18bb7776.zip |
updated links
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 14 |
1 files changed, 7 insertions, 7 deletions
@@ -121,8 +121,8 @@ listener<EventType>(priority = 0, parallel = false, receiveCancelled = false) { ```java listener(EventType.class,0,false,false,event->{ - ...listener body... - }); + ...listener body... +}); ``` Listeners can be registered either directly with `EventBus#register`, or subscribed by returning them from a function or @@ -147,14 +147,14 @@ fun listener2() = listener<EventType> { ```java public Listener listener0=listener(EventType.class,event->{ - ...listener body... - }); + ...listener body... +}); public Listener listener1(){ - return listener(EventType.class,event->{ + return listener(EventType.class,event->{ ...listener body... - }); - } + }); +} ``` #### priority |