File tree 2 files changed +6
-8
lines changed
2 files changed +6
-8
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ import Foundation
6
6
import Combine
7
7
8
8
@ImagePipelineActor
9
- final class WorkQueue {
9
+ public final class WorkQueue {
10
10
/// Sets the maximum number of concurrently executed operations.
11
11
public nonisolated var maxConcurrentOperationCount : Int {
12
12
get { _maxConcurrentOperationCount. value }
Original file line number Diff line number Diff line change @@ -138,22 +138,20 @@ extension ImagePipeline {
138
138
139
139
// MARK: - Work Queues
140
140
141
- // TODO: add support for settings `maxConcurrentCount` for these
142
-
143
141
/// Data loading queue. Default maximum concurrent task count is 6.
144
- let dataLoadingQueue = WorkQueue ( maxConcurrentOperationCount: 6 )
142
+ public let dataLoadingQueue = WorkQueue ( maxConcurrentOperationCount: 6 )
145
143
146
144
/// Image decoding queue. Default maximum concurrent task count is 1.
147
- let imageDecodingQueue = WorkQueue ( maxConcurrentOperationCount: 1 )
145
+ public let imageDecodingQueue = WorkQueue ( maxConcurrentOperationCount: 1 )
148
146
149
147
/// Image encoding queue. Default maximum concurrent task count is 1.
150
- let imageEncodingQueue = WorkQueue ( maxConcurrentOperationCount: 1 )
148
+ public let imageEncodingQueue = WorkQueue ( maxConcurrentOperationCount: 1 )
151
149
152
150
/// Image processing queue. Default maximum concurrent task count is 2.
153
- let imageProcessingQueue = WorkQueue ( maxConcurrentOperationCount: 2 )
151
+ public let imageProcessingQueue = WorkQueue ( maxConcurrentOperationCount: 2 )
154
152
155
153
/// Image decompressing queue. Default maximum concurrent task count is 2.
156
- let imageDecompressingQueue = WorkQueue ( maxConcurrentOperationCount: 2 )
154
+ public let imageDecompressingQueue = WorkQueue ( maxConcurrentOperationCount: 2 )
157
155
158
156
// MARK: - Initializer
159
157
You can’t perform that action at this time.
0 commit comments