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

Go to download

Collection of infrastructure libraries and gradle plugins of Avito Android project

There is a newer version: 2023.22
Show newest version
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 - 2024 Weber Informatics LLC | Privacy Policy