csvReaderAsync

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

Returns the file's records as a given type Tasynchronously according to the given configuration or throws IllegalStateException when:

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

  • the configuration is invalid

  • the targeted file doesn't exist

  • the targeted file's header line contains an empty string.