Skip to content

Latest commit

 

History

History
32 lines (25 loc) · 1.66 KB

Work.T1.T2.TResult..md

File metadata and controls

32 lines (25 loc) · 1.66 KB

Work<T1,T2,TResult> Class

Advanced multi-threading handler.

public sealed class Work<T1,T2,TResult> : KeepCoding.Internal.WorkBase

Type parameters

T1

T2

TResult

Inheritance System.Object 🡒 WorkBase 🡒 Work<T1,T2,TResult>

Constructors
Work(Func<T1,T2,TResult>) Stores the method so that it can later be called when a new thread starts. Multiple simultaneous threads are allowed, but are queued and limited to one at-a-time.
Work(Func<T1,T2,TResult>, bool, int) Stores the method so that it can later be called when a new thread starts.
Properties
Result The returned value of the thread.
Methods
Start(T1, T2) Starts a new thread, and waits until it is finished before halting.