+
Skip to content
This repository was archived by the owner on Jun 27, 2023. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion Sources/Async/Deprecated.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

extension Future {
@available(*, deprecated, renamed: "cascade(promise:)")
public func chain(to promise: Promise<T>) {
Expand Down
6 changes: 2 additions & 4 deletions Sources/Async/QueueHandler.swift
Original file line number Diff line number Diff line change
Expand Up @@ -65,15 +65,13 @@ public final class QueueHandler<In, Out>: ChannelInboundHandler {
/// Triggers a context write if any output is enqueued.
private func writeOutputIfEnqueued(ctx: ChannelHandlerContext) {
VERBOSE("QueueHandler.sendOutput(ctx: \(ctx)) [outputQueue.count=\(outputQueue.count)]")
if let next = outputQueue.popLast() {
while let next = outputQueue.popLast() {
for output in next {
ctx.write(wrapOutboundOut(output), promise: nil)
}
ctx.flush()
self.writeOutputIfEnqueued(ctx: ctx)
} else {
waitingCtx = ctx
}
waitingCtx = ctx
}

/// MARK: ChannelInboundHandler conformance
Expand Down
点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载