Slide 52
Slide 52 text
public protocol UnioStreamType: AnyObject {
associatedtype Input: InputType
associatedtype Output: OutputType
var input: InputWrapper { get }
var output: OutputWrapper { get }
}
public protocol AnyLogicBasedStreamType: UnioStreamType {
init(
input: Logic.Input,
state: Logic.State,
extra: Logic.Extra,
logic _: Logic.Type
) where Input == Logic.Input, Output == Logic.Output
}
extension AnyLogicBasedStreamType where Self: LogicType {
public init(input: Input, state: State, extra: Extra) {
self.init(input: input, state: state, extra: extra, logic: Self.self)
}
}
v0.9.0 Workaround for SR-12081