aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authortherealbush <therealbush@users.noreply.github.com>2022-04-23 15:32:41 -0700
committertherealbush <therealbush@users.noreply.github.com>2022-04-23 15:32:41 -0700
commitadc29fb685307385cfa9ebb813ad2bfb18bb7776 (patch)
tree59b27215bb4c0db457f321d030fef9ba0c55b7fc /README.md
parentc12696bd528e891b9da126d3b92f3db089b4b6e6 (diff)
downloadeventbus-kotlin-adc29fb685307385cfa9ebb813ad2bfb18bb7776.tar.gz
eventbus-kotlin-adc29fb685307385cfa9ebb813ad2bfb18bb7776.tar.bz2
eventbus-kotlin-adc29fb685307385cfa9ebb813ad2bfb18bb7776.zip
updated links
Diffstat (limited to 'README.md')
-rw-r--r--README.md14
1 files changed, 7 insertions, 7 deletions
diff --git a/README.md b/README.md
index c196ba2..ad46aea 100644
--- a/README.md
+++ b/README.md
@@ -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