Scoop API

scoop:scoop.asyncio:0.1.0

AsyncFile

interface AsyncFile

source · line 12
public
public interface AsyncFile : AsyncByteSource, AsyncByteSink, AsyncCloseable

An owned asynchronous file with a shared logical position, explicit seek, truncation, and durability operations.

function syncAll

source · line 40
public
public suspend fun syncAll(): Unit

Requests persistence of file data and full associated metadata.

function syncData

source · line 36
public
public suspend fun syncData(): Unit

Requests persistence of file data and metadata needed to retrieve it.

function size

source · line 20
public
public suspend fun size(): Long

Returns the current file size in bytes.

function position

source · line 24
public
public suspend fun position(): Long

Returns the current logical byte position.