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
pathstringcontentstringcancellationTokenCancellationToken