add

fun add(key: Int, fn: (T0, T1) -> Unit): Int

adds a callback into this object by key. If a callback of this key exists, it will be replaced.


fun add(fn: (T0, T1) -> Unit): Int

adds a callback into this object. The returned key is used to remove or replace the callback