clone
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 }
}Content copied to clipboard
Call copy = original.clone();
MyTag myTag = original.tag(MyTag.class);
if (myTag != null) {
copy.tag(MyTag.class, () -> myTag);
}Content copied to clipboard
If any event listeners were installed on this call with addEventListener, they will not be installed on this copy.