public class FileChannelsKt
| Modifier and Type | Method and Description |
|---|---|
static kotlinx.coroutines.io.ByteReadChannel |
readChannel(java.io.File $receiver,
long start,
long endInclusive,
NonExistentClass coroutineContext)
Open a read channel for file and launch a coroutine to fill it.
Please note that file reading is blocking so if you are starting it on Dispatchers.Unconfined it may block
your async code
|
static kotlinx.coroutines.io.ByteWriteChannel |
writeChannel(java.io.File $receiver,
kotlinx.io.pool.ObjectPool<java.nio.ByteBuffer> pool)
Open a write channel for file and launch a coroutine to read from it.
Please note that file writing is blocking so if you are starting it on Dispatchers.Unconfined it may block
your async code
|
public static kotlinx.coroutines.io.ByteReadChannel readChannel(java.io.File $receiver,
long start,
long endInclusive,
NonExistentClass coroutineContext)
Open a read channel for file and launch a coroutine to fill it. Please note that file reading is blocking so if you are starting it on Dispatchers.Unconfined it may block your async code
public static kotlinx.coroutines.io.ByteWriteChannel writeChannel(java.io.File $receiver,
kotlinx.io.pool.ObjectPool<java.nio.ByteBuffer> pool)
Open a write channel for file and launch a coroutine to read from it. Please note that file writing is blocking so if you are starting it on Dispatchers.Unconfined it may block your async code