Synced
ProcessOwnedDirectory.CreateAsync
Section titled “ProcessOwnedDirectory.CreateAsync”
- Creates a fresh directory and ownership record under an explicitly supplied file boundary.
Required contracts
Section titled “Required contracts”API: engine
Project: Inno.Core.IO
Declaration
Section titled “Declaration”public static System.Threading.Tasks.ValueTask<Inno.Core.IO.ProcessOwnedDirectory> Inno.Core.IO.ProcessOwnedDirectory.CreateAsync(string root, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))Parameters
Section titled “Parameters”Parameter root: The absolute producer-controlled root; existing unrecorded directories are never adopted.
Parameter cancellationToken: Cancels before payload ownership is returned.
Returns
Section titled “Returns”An owned directory lease; dispose only after its subprocesses and consumers finish.
Exceptions
Section titled “Exceptions”Exception T:System.ArgumentException: The root is relative or is a filesystem root.
Exception T:System.IO.IOException: The boundary crosses a link or ownership cannot be recorded.
Exception T:System.OperationCanceledException: Creation was canceled.