aboutsummaryrefslogtreecommitdiff
path: root/src/test/kotlin/Main.kt
blob: 0933c9765d294c5ce1d6a61e8790460fb27d01a1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
import me.bush.illnamethislater.*

/**
 * @author bush
 * @since 3/13/2022
 */
fun main() {
    EventBus().run {

        subscribe(Subscriber())

        post("Object()")

        register(listener<String> {
            println("it")
        })
    }
}

class Subscriber {
// clean up and writr tests
    @EventListener
    fun onDeez() = listener(listener =  { e: String ->
        println(e.uppercase())
    }, receiveCancelled = false, )
}