Fixed generics

This commit is contained in:
nathan 2020-08-17 16:48:48 +02:00
parent a214c2b53a
commit 57d0b2a14e

View File

@ -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.