Table of Contents

Method WriteAllTextAtomicAsync

Namespace
Oscova.Agents.Utils
Assembly
Oscova.Agents.dll

WriteAllTextAtomicAsync(string, string, CancellationToken)

Writes text to path atomically by staging beside the target before replacing it.

public static Task WriteAllTextAtomicAsync(string path, string content, CancellationToken cancellationToken = default)

Parameters

path string
content string
cancellationToken CancellationToken

Returns

Task