You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
refactor!: Major code cleanup for clearer state (#27)
* Quick pass
* no locks
* github actions
* publish via github actions
* pack
* Parent non-optional
* Generics are fun
* second pass
* Group workers, CTS, and Task in a class for simpler nullability
* pollysharp
* reverted cancellation changes
* reset state
* Update samples
* changes
* still working
* the fix
* private workers
* comments
* comments 2
* comments 3
* public worker count
/// This method is where the actual calculation/computation/heavy lifting should be done.
29
-
/// <b>Make sure you always check as frequently as you can if <see cref="WorkerInstance.CancellationToken"/> is cancelled. For an example, see the PrimeCalculatorWorker example.</b>
30
+
/// <b>Make sure you always check as frequently as you can if <see cref="WorkerInstance{T}.CancellationToken"/> is cancelled. For an example, see the PrimeCalculatorWorker example.</b>
30
31
/// </summary>
32
+
/// <remarks>
33
+
/// If you don't need <see langword="async"/> function, then you can simply return <see cref="Task.CompletedTask"/>
34
+
/// Either way, you should be sure to handle exceptions in this function. Otherwise, they will be Unobserved!
35
+
/// You can call <paramref name="done"/> on <see cref="Exception"/>s, but avoid calling it when cancellation is has been observed.
36
+
/// </remarks>
31
37
/// <param name="reportProgress">Call this to report progress up to the parent component.</param>
32
38
/// <param name="done">Call this when everything is <b>done</b>. It will tell the parent component that you're ready to <see cref="SetData(IGH_DataAccess)"/>.</param>
/// Write your data setting logic here. <b>Do not call this function directly from this class. It will be invoked by the parent <see cref="GH_AsyncComponent"/> after you've called `Done` in the <see cref="DoWork"/> function.</b>
42
+
/// Write your data setting logic here. <b>Do not call this function directly from this class. It will be invoked by the parent <see cref="GH_AsyncComponent{T}"/> after you've called `Done` in the <see cref="DoWork"/> function.</b>
37
43
/// </summary>
38
44
/// <param name="da"></param>
39
45
publicabstractvoidSetData(IGH_DataAccessda);
40
46
41
47
/// <summary>
42
-
/// Write your data collection logic here. <b>Do not call this method directly. It will be invoked by the parent <see cref="GH_AsyncComponent"/>.</b>
48
+
/// Write your data collection logic here. <b>Do not call this method directly. It will be invoked by the parent <see cref="GH_AsyncComponent{T}"/>.</b>
0 commit comments