Class ManagedDisposeExtensions
Provides extension methods to safely dispose of graph structs without having to worry about jobs that are still running on the graph.
Namespace: AnyPath.Managed
Assembly: AnyPath.dll
Syntax
public static class ManagedDisposeExtensions
Methods
DisposeGraph<TGraph>(TGraph)
Disposes a graph struct with all of it's native containers. AnyPath internally keeps track of all of the active jobs that use the graph and will make sure the graph is only truly disposed when all of these jobs are finished.
Declaration
public static void DisposeGraph<TGraph>(this TGraph graph) where TGraph : IGraph
Parameters
| Type | Name | Description |
|---|---|---|
| TGraph | graph | The graph to dispose |
Type Parameters
| Name | Description |
|---|---|
| TGraph | The type of graph to dispose |
Remarks
Even though the graph is disposed after all of the jobs that operate on it are completed, you should take caution in accessing disposed graphs on finders that still exist and have the disposed graph set on it.