You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
importwtf.mizu.kawa.OptimizedBusfunmain() {
val bus =OptimizedBus()
bus.addListener {
on<String> {
println(it)
}
}
val event ="foobar123"
bus.publish(event)
}
and
importwtf.mizu.kawa.OptimizedBusfunmain() {
val bus =OptimizedBus()
bus.addListener<String> {
println(it)
}
val event ="foobar123"
bus.publish(event)
}
or name the function whatever we want, like buildListener as @xtrm-en told me but that wouldn't really make sense as we're not only building it but also adding it directly.
The text was updated successfully, but these errors were encountered:
We might need something like:
and
or name the function whatever we want, like
buildListener
as @xtrm-en told me but that wouldn't really make sense as we're not only building it but also adding it directly.The text was updated successfully, but these errors were encountered: