com.avito.android.critical_path.internal.CriticalPathWriter.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of critical-path Show documentation
Show all versions of critical-path Show documentation
Collection of infrastructure libraries and gradle plugins of Avito Android project
package com.avito.android.critical_path.internal
import com.avito.android.critical_path.CriticalPathListener
import com.avito.android.critical_path.TaskOperation
import com.avito.graph.OperationsPath
internal class CriticalPathWriter(
private val report: CriticalPathReport
) : CriticalPathListener {
override fun onCriticalPathReady(path: OperationsPath) {
val records = path.operations
.map {
PathRecord.fromTaskOperation(it)
}
report.write(records)
}
}