csvWriterOrNullAsync

@SinceKotools(project = Project.Csv, version = "2.0")
infix inline fun <T : Any> CoroutineScope.csvWriterOrNullAsync(noinline configuration: Writer<T>.() -> Unit): Deferred<Unit?>

Writes records as a given type T in a CSV file asynchronously according to the given configuration or returns null when:

  • the type T is not a public or internal data class

  • the configuration is invalid.