aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorbush <101901339+therealbush@users.noreply.github.com>2022-04-25 13:55:44 -0700
committerGitHub <noreply@github.com>2022-04-25 13:55:44 -0700
commitfd1d00d92a34ce2fdfd61a6ee8a03e1445adcba9 (patch)
tree186179648d364ded78b383292241db33016642c8 /README.md
parent152bdde7629823322e8920fb62778844ae11af1b (diff)
downloadeventbus-kotlin-fd1d00d92a34ce2fdfd61a6ee8a03e1445adcba9.tar.gz
eventbus-kotlin-fd1d00d92a34ce2fdfd61a6ee8a03e1445adcba9.tar.bz2
eventbus-kotlin-fd1d00d92a34ce2fdfd61a6ee8a03e1445adcba9.zip
Update README.mdHEADmaster
Diffstat (limited to 'README.md')
-rw-r--r--README.md15
1 files changed, 7 insertions, 8 deletions
diff --git a/README.md b/README.md
index d7d8d17..880e3fd 100644
--- a/README.md
+++ b/README.md
@@ -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...
});
}