|
PeanutButter
|
Describes a parallel worker for functions returning values. More...
Public Member Functions | |
| void | AddWorker (Func< T > worker) |
| Add a single worker. | |
| void | AddWorkers (IEnumerable< Func< T > > workers) |
| Add a bunch of workers. | |
| WorkResult< T >[] | RunAll () |
| Run all the queued work with the default max degree of parallelism. | |
| WorkResult< T >[] | RunAll (int maxDegreeOfParallelism) |
| Run all the queued work with the provided max degree of parallelism. | |
Properties | |
| bool | Busy [get] |
| Will be true whilst the worker is busy. | |
Describes a parallel worker for functions returning values.
| T |
| void PeanutButter.Utils.IParallelWorker< T >.AddWorker | ( | Func< T > | worker | ) |
| void PeanutButter.Utils.IParallelWorker< T >.AddWorkers | ( | IEnumerable< Func< T > > | workers | ) |
| WorkResult< T >[] PeanutButter.Utils.IParallelWorker< T >.RunAll | ( | ) |
Run all the queued work with the default max degree of parallelism.
Implemented in PeanutButter.Utils.ParallelWorker< T >.
| WorkResult< T >[] PeanutButter.Utils.IParallelWorker< T >.RunAll | ( | int | maxDegreeOfParallelism | ) |
Run all the queued work with the provided max degree of parallelism.
| maxDegreeOfParallelism |
| InvalidOperationException |
Implemented in PeanutButter.Utils.ParallelWorker< T >.
|
get |
Will be true whilst the worker is busy.
Implemented in PeanutButter.Utils.ParallelWorker< T >.