core.async

incorrect behavior in CLJS when using <! in loop/recur binding

Details

  • Type: Defect Defect
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Declined
  • Affects Version/s: None
  • Fix Version/s: None
  • Component/s: None
  • Labels:
    None

Description

(loop [x (<! c)]
   ...)

does not work correctly, you will get nil values on some reads off this channel, you have to write

(loop []
  (let [x (<! c)]
    ...))

in order to only get nil when the channel closes.

Activity

Rich Hickey made changes -
Field Original Value New Value
Assignee Rich Hickey [ richhickey ]
David Nolen made changes -
Summary incorrect behavior when using <! in loop/recur binding incorrect behavior in CLJS when using <! in loop/recur binding
Timothy Baldridge made changes -
Resolution Declined [ 2 ]
Assignee Timothy Baldridge [ halgari ]
Status Open [ 1 ] Closed [ 6 ]

People

Vote (0)
Watch (1)

Dates

  • Created:
    Updated:
    Resolved: