Method DisposeAsync
DisposeAsync()
Asynchronously releases the resources used by the instance, including disposing the source (if owned) and deleting the temporary working directory.
Declaration
public ValueTask DisposeAsync()
Returns
| Type | Description |
|---|---|
| ValueTask |
Implements
Remarks
The working directory is deleted even if disposing the source throws; the exception is thrown once the deletion has been attempted. The deletion is best effort: a working directory that cannot be deleted, for example because something still has a file in it open, is left as it is.