[]
Forces evaluation of the given IEnumerable<T> in a separate thread and returns a new IEnumerable<T> to be enumerated in the current thread.
public static IEnumerable<T> ForceInBackground<T>(this IEnumerable<T> src, CancellationToken cancellationToken)
| Type | Name | Description |
|---|---|---|
| IEnumerable<T> | src | The source sequence. |
| CancellationToken | cancellationToken | A token to cancel enumeration. |
| Type | Description |
|---|---|
| IEnumerable<T> | A sequence that is evaluated in a background thread. |
| Name | Description |
|---|---|
| T | The type of elements in the sequence. |
Forces evaluation of the given IEnumerable<T> in a separate thread and returns a new IEnumerable<T> to be enumerated in the current thread.
public static IEnumerable<T> ForceInBackground<T>(this IEnumerable<T> src, CancellationToken cancellationToken, int maxBufferSize)
| Type | Name | Description |
|---|---|---|
| IEnumerable<T> | src | The source sequence. |
| CancellationToken | cancellationToken | A token to cancel enumeration. |
| int | maxBufferSize | The maximum buffer size. If zero, the size is unlimited. |
| Type | Description |
|---|---|
| IEnumerable<T> | A sequence that is evaluated in a background thread. |
| Name | Description |
|---|---|
| T | The type of elements in the sequence. |