0001 // SendingChannel.swift 0002 // 0003 // The MIT License (MIT) 0004 // 0005 // Copyright (c) 2015 Zewo 0006 // 0007 // Permission is hereby granted, free of charge, to any person obtaining a copy 0008 // of this software and associated documentation files (the "Software"), to deal 0009 // in the Software without restriction, including without limitation the rights 0010 // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 0011 // copies of the Software, and to permit persons to whom the Software is 0012 // furnished to do so, subject to the following conditions: 0013 // 0014 // The above copyright notice and this permission notice shall be included in all 0015 // copies or substantial portions of the Software. 0016 // 0017 // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 0018 // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 0019 // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 0020 // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 0021 // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 0022 // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 0023 // SOFTWARE. 0024 0025 public final class SendingChannel<T
Channel.swift:59 public lazy var sendingChannel: SendingChannel<T> = SendingChannel(self)Channel.swift:59 public lazy var sendingChannel: SendingChannel<T> = SendingChannel(self)Select.swift:133 let channel: SendingChannel<T>Select.swift:137 init(channel: SendingChannel<T>, value: T, closure: Void -> Void) {Select.swift:289 public func send<T>(value: T, to channel: SendingChannel<T>?, closure: Void -> Void) {>: Sendable { 0026 private let channel
SendingChannel.swift:26 private let channel: Channel<T>SendingChannel.swift:28 init(_ channel: Channel<T>) {SendingChannel.swift:32 public func send(value: T) {SendingChannel.swift:36 func send(value: T, clause: UnsafeMutablePointer<Void>, index: Int) {: Channel<T> 0027 0028 init
SendingChannel.swift:29 self.channel = channelSendingChannel.swift:33 return channel.send(value)SendingChannel.swift:37 return channel.send(value, clause: clause, index: index)SendingChannel.swift:41 return channel.closed(_ channel: Channel<T>) { 0029 self.channel = channel 0030 } 0031 0032 public func send(value: T) { 0033 return channel.send(value) 0034 } 0035 0036 func send
Channel.swift:59 public lazy var sendingChannel: SendingChannel<T> = SendingChannel(self)(value: T, clause: UnsafeMutablePointer<Void>, index: Int) { 0037 return channel.send(value, clause: clause, index: index) 0038 } 0039 0040 public var closed
Select.swift:144 channel.send(value, clause: clause, index: index): Bool { 0041 return channel.closed 0042 } 0043 } 0044 0045
Select.swift:290 if let channel = channel where !channel.closed {