Skip to content

Commit 133ec8d

Browse files
committed
main
1 parent e3dff16 commit 133ec8d

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

docs/document/Modern CSharp/docs/Parallel Programming/Parallel Utils/Parallel Linq.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,16 @@ public class ParallelQuery<TSource> : ParallelQuery, IEnumerable<TSource> { /* .
2828
- `ParallelEnumerable.AsEnumerable()` is a common extension on `IEnumerable<T>`, however `ParallelEnumerable.AsEnumerable` exists to unwrap the backing enumerable when working with `ParallelQuery<T>`
2929
- identical to `ParallelEnumerable.AsSequential()`
3030

31+
```cs
32+
_ = Enumerable.Range(1, 100)
33+
.AsParallel()
34+
.Select(x => x) // ParallelEnumerable.Select // [!code highlight]
35+
.AsEnumerable()
36+
.Select(x => x) // Enumerable.Select // [!code highlight]
37+
.AsSequential()
38+
.Select(x => x) // Enumerable.Select // [!code highlight]
39+
```
40+
3141
> [!NOTE]
3242
> They're all deferred execution
3343

docs/services/DocumentService.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ export const documentMap = {
2929
'Entity Framework Core': { icon: '🗿', description: '' },
3030
'HTML & CSS': { icon: '😬', description: '' },
3131
PowerShell: { icon: '🐚', description: '' },
32-
Lua: { icon: '🌝' },
32+
Lua: { icon: '🌝', description: '' },
3333
} as const satisfies DocumentInfo;
3434

3535
export type DocumentName = keyof typeof documentMap;

0 commit comments

Comments
 (0)