Fixed generics
This commit is contained in:
parent
a214c2b53a
commit
57d0b2a14e
|
@ -25,13 +25,13 @@ interface Ping {
|
||||||
* Adds a ping listener to this future. The listener is notified when this future is done. If this future is already completed,
|
* Adds a ping listener to this future. The listener is notified when this future is done. If this future is already completed,
|
||||||
* then the listener is notified immediately.
|
* then the listener is notified immediately.
|
||||||
*/
|
*/
|
||||||
fun <C : Connection> add(listener: PingListener<C>?)
|
fun <C : Connection> add(listener: PingListener<C>)
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Removes a ping listener from this future. The listener is no longer notified when this future is done. If the listener
|
* Removes a ping listener from this future. The listener is no longer notified when this future is done. If the listener
|
||||||
* was not previously associated with this future, this method does nothing and returns silently.
|
* was not previously associated with this future, this method does nothing and returns silently.
|
||||||
*/
|
*/
|
||||||
fun <C : Connection> remove(listener: PingListener<C>?)
|
fun <C : Connection> remove(listener: PingListener<C>)
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Cancel this Ping.
|
* Cancel this Ping.
|
||||||
|
|
Loading…
Reference in New Issue
Block a user