keepAlive abstract method

KeepAliveLink keepAlive()

Requests for the state of a provider to not be disposed when all the listeners of the provider are removed.

Returns an object which allows cancelling this operation, therefore allowing the provider to dispose itself when all listeners are removed.

If keepAlive is invoked multiple times, all KeepAliveLink will have to be closed for the provider to dispose itself when all listeners are removed.

Implementation

KeepAliveLink keepAlive();