Mult gets stuck when you put a value on the source chan and there are no taps on the first tick


  • Type: Defect Defect
  • Status: Resolved Resolved
  • Priority: Major Major
  • Resolution: Completed
  • Affects Version/s: None
  • Fix Version/s: None
  • Component/s: None
  • Labels:
  • Environment:
  • Patch:
    Code and Test


If you have a mult and you put a value on its source channel, but there are no taps at the moment, the mult will get stuck and not put any values on future tap channels. Here's an example:

In the example, no value will ever get put on the `tap1` chan. There are two possible solutions to this: a) drop all values going to the mult until a tap is created, or b) queue the values until a tap is created. I believe the first option is more straightforward, since if you have 1 tapped channel already and you go to 2 taps, the mult does not put old values on the new tap. This would make the behavior consistent going from 0 taps to 1 tap as well.


Radford Smith made changes -
Field Original Value New Value
Attachment 0001-ASYNC-41-Make-mult-drop-values-when-there-are-no-tap.patch [ 12503 ]
Timothy Baldridge made changes -
Status Open [ 1 ] Resolved [ 5 ]
Assignee Rich Hickey [ richhickey ] Timothy Baldridge [ halgari ]
Resolution Completed [ 1 ]


Vote (0)
Watch (0)


  • Created: