LiveQueue
An interface for an object emitter which emits objects exactly once. This can be used to send effects that need to be handled only once, while also providing a mechanism to queue and handle effects that occur while the lifecycle-owner is in a paused state.
Parameters
The type of object to store
Functions
Removes the current observer and clears any queued effects.
Returns true
if the current observer is in a Resumed state false
if the current observer is not Resumed, or there is no current observer
Returns true
if there is an observer of this LiveQueue false
if there is no current observer assigned
A utility method for calling .setObserver] that substitutes null for the optional observer. See linked method doc for full info.
The LiveQueue supports only a single observer, so calling this method will override any previous observers set.