Advertisement
Guest User

Untitled

a guest
Jul 24th, 2016
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. public protocol ProducerType: class {
  2.  
  3. associatedtype OutputType
  4.  
  5. var consumer: (OutputType -> Void)? { get set }
  6. }
  7.  
  8.  
  9. public protocol ConsumerType: class {
  10.  
  11. associatedtype InputType
  12.  
  13. func consume(_: InputType)
  14. }
  15.  
  16. public protocol TransformerType: ConsumerType, ConsumableType {
  17.  
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement