groostav
02/16/2018, 12:17 AMEventBus
and kotlin:
eventBus.register(@Subscribe fun(event: String){
//...
})
I presume the val x = fun(something: Something): Something { ...
syntax was a nod to javascript devs (who may or may not use it?), but on the JVM its backed by good ol' anonymous classes, which means I presume guava picks up on the @Subscribe fun invoke(something: Something)
like it would with any other subscriber.
this language is neat!