Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public protocol ProducerType: class {
- associatedtype OutputType
- var consumer: (OutputType -> Void)? { get set }
- }
- public protocol ConsumerType: class {
- associatedtype InputType
- func consume(_: InputType)
- }
- public protocol TransformerType: ConsumerType, ConsumableType {
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement