All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.avito.android.critical_path.internal.CriticalPathWriter.kt Maven / Gradle / Ivy

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)
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy