mirai-core / net.mamoe.mirai.utils / LockFreeLinkedList / clear

clear

@JvmOverloads open fun clear(onEach: ((E) -> Unit)? = null): Unit