core-async

dehli 2019-02-13T15:19:19.010200Z

To update from yesterday, I ended up adding (.exportSymbol js/goog "setTimeout" js/setTimeout) to be executed before the top-level go block and I was able to get it working. Thanks again for the help!

dehli 2019-02-13T16:09:26.011Z

I haven't been able to find the answer via google, but do go block channels auto close themselves? I'm trying to put a value onto a channel created via a go block and it's returning false

Jan K 2019-02-13T16:29:31.013600Z

@dehli The channel returned from (go ...) is closed when the go block exits. You shouldn't try to put anything to it.

dehli 2019-02-13T16:32:00.014600Z

Gotcha, that makes sense. Is there a way to repeatedly "take" the same value from a channel? More analogous to how JS promises work

dehli 2019-02-13T16:32:58.015800Z

I see that there is a promise-chan which can only store one value, but can you still only take the value once?

Jan K 2019-02-13T16:33:29.016300Z

promise-chan will keep giving you the same value with repeated takes

dehli 2019-02-13T16:33:43.016600Z

Great 😄 That's exactly what I need! Thanks!

serioga 2019-02-13T20:34:04.017300Z

but I guess there is no promise-chan in cljs