mirror of
https://github.com/swift-server/async-http-client.git
synced 2026-06-02 07:37:34 +00:00
Add ConnectionPool HTTP1StateMachine (#416)
This commit is contained in:
+6
-5
@@ -33,11 +33,12 @@ extension HTTPConnectionPool {
|
||||
self.count == 0
|
||||
}
|
||||
|
||||
func count(for eventLoop: EventLoop?) -> Int {
|
||||
if let eventLoop = eventLoop {
|
||||
return self.withEventLoopQueueIfAvailable(for: eventLoop.id) { $0.count } ?? 0
|
||||
}
|
||||
return self.generalPurposeQueue.count
|
||||
var generalPurposeCount: Int {
|
||||
self.generalPurposeQueue.count
|
||||
}
|
||||
|
||||
func count(for eventLoop: EventLoop) -> Int {
|
||||
self.withEventLoopQueueIfAvailable(for: eventLoop.id) { $0.count } ?? 0
|
||||
}
|
||||
|
||||
func isEmpty(for eventLoop: EventLoop?) -> Bool {
|
||||
|
||||
Reference in New Issue
Block a user