clone

abstract override fun clone(): Call

Create a new, identical call to this one which can be enqueued or executed even if this call has already been.

The tags on the returned call will equal the tags as on request. Any tags that were computed for this call will not be included on the cloned call. If necessary you may manually copy over specific tags by re-computing them:

val copy = original.clone()

val myTag = original.tag(MyTag::class)
if (myTag != null) {
copy.tag(MyTag::class) { myTag }
}
Call copy = original.clone();

MyTag myTag = original.tag(MyTag.class);
if (myTag != null) {
copy.tag(MyTag.class, () -> myTag);
}

If any event listeners were installed on this call with addEventListener, they will not be installed on this copy.