From f632c0948ddd45053f35dae321873dad029c03d1 Mon Sep 17 00:00:00 2001 From: Jedd Morgan <45512892+JR-Morgan@users.noreply.github.com> Date: Wed, 9 Jul 2025 12:56:29 +0100 Subject: [PATCH] Expose some extra props --- GrasshopperAsyncComponent/GH_AsyncComponent.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/GrasshopperAsyncComponent/GH_AsyncComponent.cs b/GrasshopperAsyncComponent/GH_AsyncComponent.cs index cb607de..e476dad 100755 --- a/GrasshopperAsyncComponent/GH_AsyncComponent.cs +++ b/GrasshopperAsyncComponent/GH_AsyncComponent.cs @@ -54,6 +54,9 @@ public abstract class GH_AsyncComponent : GH_Component, IDisposable private readonly List> _workers; + public IEnumerable CancellationTokenSources => _workers.Select(x => x.CancellationSource); + public IEnumerable> Workers => _workers.Select(x => x.Instance); + public int WorkerCount => _workers.Count; ///