mirror of
https://github.com/apple/swift-nio
synced 2026-11-28 05:14:23 +00:00
Cleanup after the split of modules and fix visibility
This commit is contained in:
1 parent
e193bc97f0
commit
4890ca6ed8
4 files changed
+5
-39
No files matched your search
@@ -32,15 +32,15 @@ protocol ChannelOutboundInvoker {
|
||||
|
||||
// Default implementations for methods that not take a promise.
|
||||
extension ChannelOutboundInvoker {
|
||||
func write(data: Buffer) -> Future<Void> {
|
||||
public func write(data: Buffer) -> Future<Void> {
|
||||
return write(data: data, promise: Promise<Void>())
|
||||
}
|
||||
|
||||
func writeAndFlush(data: Buffer) -> Future<Void> {
|
||||
public func writeAndFlush(data: Buffer) -> Future<Void> {
|
||||
return writeAndFlush(data: data, promise: Promise<Void>())
|
||||
}
|
||||
|
||||
func close() -> Future<Void> {
|
||||
public func close() -> Future<Void> {
|
||||
return close(promise: Promise<Void>())
|
||||
}
|
||||
}
|
||||
@@ -12,6 +12,8 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
import Foundation
|
||||
import NIO
|
||||
import Future
|
||||
|
||||
|
||||
public class EchoHandler: ChannelHandler {
|
||||
@@ -1,18 +0,0 @@
|
||||
//===----------------------------------------------------------------------===//
|
||||
//
|
||||
// This source file is part of the SwiftNIO open source project
|
||||
//
|
||||
// Copyright (c) 2017-2018 Apple Inc. and the SwiftNIO project authors
|
||||
// Licensed under Apache License v2.0
|
||||
//
|
||||
// See LICENSE.txt for license information
|
||||
// See CONTRIBUTORS.txt for the list of SwiftNIO project authors
|
||||
//
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
import Foundation
|
||||
|
||||
print("Hello, Linux!")
|
||||
|
||||
@@ -1,18 +0,0 @@
|
||||
//===----------------------------------------------------------------------===//
|
||||
//
|
||||
// This source file is part of the SwiftNIO open source project
|
||||
//
|
||||
// Copyright (c) 2017-2018 Apple Inc. and the SwiftNIO project authors
|
||||
// Licensed under Apache License v2.0
|
||||
//
|
||||
// See LICENSE.txt for license information
|
||||
// See CONTRIBUTORS.txt for the list of SwiftNIO project authors
|
||||
//
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
import Foundation
|
||||
|
||||
print("Hello, Linux!")
|
||||
|
||||
Reference in new issue
Block a user