diff options
author | bush <101901339+therealbush@users.noreply.github.com> | 2022-04-25 13:55:44 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-25 13:55:44 -0700 |
commit | fd1d00d92a34ce2fdfd61a6ee8a03e1445adcba9 (patch) | |
tree | 186179648d364ded78b383292241db33016642c8 | |
parent | 152bdde7629823322e8920fb62778844ae11af1b (diff) | |
download | eventbus-kotlin-master.tar.gz eventbus-kotlin-master.tar.bz2 eventbus-kotlin-master.zip |
-rw-r--r-- | README.md | 15 |
1 files changed, 7 insertions, 8 deletions
@@ -117,7 +117,7 @@ listener<EventType>(priority = 0, parallel = false, receiveCancelled = false) { ``` ```java -listener(EventType.class,0,false,false,event->{ +listener(EventType.class, 0, false, false, event -> { ...listener body... }); ``` @@ -132,10 +132,9 @@ val listener0 = listener<EventType> { ...listener body ... } -val listener1 - get() = listener<EventType> { - ...listener body ... - } +val listener1 get() = listener<EventType> { + ...listener body ... +} fun listener2() = listener<EventType> { ...listener body ... @@ -143,12 +142,12 @@ fun listener2() = listener<EventType> { ``` ```java -public Listener listener0=listener(EventType.class,event->{ +public Listener listener0 = listener(EventType.class, event -> { ...listener body... }); -public Listener listener1(){ - return listener(EventType.class,event->{ +public Listener listener1() { + return listener(EventType.class, event -> { ...listener body... }); } |