We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents dafebf5 + f632c09 commit b022d84Copy full SHA for b022d84
1 file changed
GrasshopperAsyncComponent/GH_AsyncComponent.cs
@@ -54,6 +54,9 @@ public abstract class GH_AsyncComponent<T> : GH_Component, IDisposable
54
55
private readonly List<Worker<T>> _workers;
56
57
+ public IEnumerable<CancellationTokenSource> CancellationTokenSources => _workers.Select(x => x.CancellationSource);
58
+ public IEnumerable<WorkerInstance<T>> Workers => _workers.Select(x => x.Instance);
59
+
60
public int WorkerCount => _workers.Count;
61
62
/// <summary>
0 commit comments