Skip to content

Commit c4f066e

Browse files
authored
Merge pull request #5 from mtj0928/update-docc
Update DocC
2 parents a882201 + 04a2ac1 commit c4f066e

File tree

3 files changed

+15
-10
lines changed

3 files changed

+15
-10
lines changed

.github/workflows/docc.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ jobs:
2121
--output-path ./docs \
2222
--transform-for-static-hosting \
2323
--hosting-base-path swift-async-operations
24+
--source-service github \
25+
--source-service-base-url https://github.com/mtj0928/swift-async-operations/blob/main
2426
env:
2527
DOCC_BUILD: 1
2628
- uses: actions/upload-pages-artifact@v3

README.md

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -126,15 +126,18 @@ End: 2
126126
[2, 4, 6]
127127
```
128128
This library provides
129-
- [asyncForEach](https://mtj0928.github.io/swift-async-operations/documentation/asyncoperations/swift/sequence/asyncallsatisfy(numberofconcurrenttasks:priority:_:))
130-
- [asyncMap](https://mtj0928.github.io/swift-async-operations/documentation/asyncoperations/swift/sequence/asyncmap(numberofconcurrenttasks:priority:_:))
131-
- [asyncFlatMap](https://mtj0928.github.io/swift-async-operations/documentation/asyncoperations/swift/sequence/asyncflatmap(numberofconcurrenttasks:priority:_:))
132-
- [asyncCompactMap](https://mtj0928.github.io/swift-async-operations/documentation/asyncoperations/swift/sequence/asynccompactmap(numberofconcurrenttasks:priority:_:))
133-
- [asyncFilter](https://mtj0928.github.io/swift-async-operations/documentation/asyncoperations/swift/sequence/asyncfilter(numberofconcurrenttasks:priority:_:))
134-
- [asyncFirst](https://mtj0928.github.io/swift-async-operations/documentation/asyncoperations/swift/sequence/asyncfirst(numberofconcurrenttasks:priority:where:))
135-
- [asyncAllSatisfy](https://mtj0928.github.io/swift-async-operations/documentation/asyncoperations/swift/sequence/asyncallsatisfy(numberofconcurrenttasks:priority:_:))
136-
- [asyncContains](https://mtj0928.github.io/swift-async-operations/documentation/asyncoperations/swift/sequence/asynccontains(numberofconcurrenttasks:priority:where:))
137-
- [asyncReduce](https://mtj0928.github.io/swift-async-operations/documentation/asyncoperations/swift/sequence/asyncreduce(into:_:))
129+
- Sequence
130+
- [asyncForEach](https://mtj0928.github.io/swift-async-operations/documentation/asyncoperations/swift/sequence/asyncforeach(numberofconcurrenttasks:priority:_:))
131+
- [asyncMap](https://mtj0928.github.io/swift-async-operations/documentation/asyncoperations/swift/sequence/asyncmap(numberofconcurrenttasks:priority:_:))
132+
- [asyncFlatMap](https://mtj0928.github.io/swift-async-operations/documentation/asyncoperations/swift/sequence/asyncflatmap(numberofconcurrenttasks:priority:_:))
133+
- [asyncCompactMap](https://mtj0928.github.io/swift-async-operations/documentation/asyncoperations/swift/sequence/asynccompactmap(numberofconcurrenttasks:priority:_:))
134+
- [asyncFilter](https://mtj0928.github.io/swift-async-operations/documentation/asyncoperations/swift/sequence/asyncfilter(numberofconcurrenttasks:priority:_:))
135+
- [asyncFirst](https://mtj0928.github.io/swift-async-operations/documentation/asyncoperations/swift/sequence/asyncfirst(numberofconcurrenttasks:priority:where:))
136+
- [asyncAllSatisfy](https://mtj0928.github.io/swift-async-operations/documentation/asyncoperations/swift/sequence/asyncallsatisfy(numberofconcurrenttasks:priority:_:))
137+
- [asyncContains](https://mtj0928.github.io/swift-async-operations/documentation/asyncoperations/swift/sequence/asynccontains(numberofconcurrenttasks:priority:where:))
138+
- [asyncReduce](https://mtj0928.github.io/swift-async-operations/documentation/asyncoperations/swift/sequence/asyncreduce(into:_:))e
139+
- AsyncSequence
140+
- [asyncForEach](https://mtj0928.github.io/swift-async-operations/documentation/asyncoperations/_concurrency/asyncsequence/asyncforeach(numberofconcurrenttasks:priority:_:))
138141

139142
### Ordered Task Group
140143
The original utility function `withTaskGroup` and `withThrowingTaskGroup` don't ensure the order of `for await`.

Sources/AsyncOperations/AsyncSequence/AsyncSequence+AsyncForEach.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ extension AsyncSequence where Element: Sendable {
77
/// (0..<5).forEach { c.yield($0) }
88
/// c.finish()
99
/// }
10-
/// await asyncSequence.asyncForEach(numberOfConcurrentTasks: 3) { @MainActor number in
10+
/// await asyncSequence.asyncForEach(numberOfConcurrentTasks: 3) { number in
1111
/// print("Start: \(number)")
1212
/// await Task.yield()
1313
/// print("end: \(number)")

0 commit comments

Comments
 (0)