IFileWriteTransaction interface

Namespace Runic.Platform · Runic.Platform 0.7.0-preview.5

public interface IFileWriteTransaction : IAsyncDisposable

Inherits or implements IAsyncDisposable.

A single-consumption staged write. Disposal removes uncommitted staging data.

Properties

Content

Stream Content { get; }

The writable staging stream owned by this transaction.

Methods

CommitAsync

ValueTask<FileCommitResult> CommitAsync(CancellationToken cancellationToken = default)

Checks for conflicts and commits once. After native replacement begins, returns the actual outcome despite late cancellation.