destroy

fun destroy()

Moves the sub-lifecycle owner to the destroyed state. After this call, it will no longer follow the lifecycle of its parent.