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
// can be used with F#'s task and async in a for-loop
128
+
let f() = task { for x in oneToTen do printfn "Number %i" x }
129
+
let g() = async { for x in oneToTen do printfn "Number %i" x }
130
+
121
131
// returns a delayed sequence of IAsyncEnumerable<string>
122
132
let allFilesAsLines() = taskSeq {
123
133
let files = Directory.EnumerateFiles(@"c:\temp")
@@ -313,14 +323,14 @@ The following is the progress report:
313
323
314
324
## More information
315
325
316
-
### Futher reading `IAsyncEnumerable`
326
+
### Further reading `IAsyncEnumerable`
317
327
318
328
- A good C#-based introduction [can be found in this blog][8].
319
329
-[An MSDN article][9] written shortly after it was introduced.
320
330
- Converting a `seq` to an `IAsyncEnumerable`[demo gist][10] as an example, though `TaskSeq` contains many more utility functions and uses a slightly different approach.
321
331
- If you're looking for using `IAsyncEnumerable` with `async` and not `task`, the excellent [`AsyncSeq`][11] library should be used. While `TaskSeq` is intended to consume `async` just like `task` does, it won't create an `AsyncSeq` type (at least not yet). If you want classic Async and parallelism, you should get this library instead.
322
332
323
-
### Futher reading on resumable state machines
333
+
### Further reading on resumable state machines
324
334
325
335
- A state machine from a monadic perspective in F# [can be found here][12], which works with the pre-F# 6.0 non-resumable internals.
326
336
- The [original RFC for F# 6.0 on resumable state machines][13]
// can be used with F#'s task and async in a for-loop
66
+
let f() = task { for x in oneToTen do printfn "Number %i" x }
67
+
let g() = async { for x in oneToTen do printfn "Number %i" x }
68
+
59
69
// returns a delayed sequence of IAsyncEnumerable<string>
60
70
let allFilesAsLines() = taskSeq {
61
71
let files = Directory.EnumerateFiles(@"c:\temp")
@@ -237,14 +247,14 @@ _The motivation for `readOnly` in `Seq` is that a cast from a mutable array or l
237
247
238
248
## More information
239
249
240
-
### Futher reading `IAsyncEnumerable`
250
+
### Further reading `IAsyncEnumerable`
241
251
242
252
- A good C#-based introduction [can be found in this blog][8].
243
253
-[An MSDN article][9] written shortly after it was introduced.
244
254
- Converting a `seq` to an `IAsyncEnumerable`[demo gist][10] as an example, though `TaskSeq` contains many more utility functions and uses a slightly different approach.
245
255
- If you're looking for using `IAsyncEnumerable` with `async` and not `task`, the excellent [`AsyncSeq`][11] library should be used. While `TaskSeq` is intended to consume `async` just like `task` does, it won't create an `AsyncSeq` type (at least not yet). If you want classic Async and parallelism, you should get this library instead.
246
256
247
-
### Futher reading on resumable state machines
257
+
### Further reading on resumable state machines
248
258
249
259
- A state machine from a monadic perspective in F# [can be found here][12], which works with the pre-F# 6.0 non-resumable internals.
250
260
- The [original RFC for F# 6.0 on resumable state machines][13]
0 commit comments