Questions tagged [core.async]

A clojure/clojurescript library for asynchronous programming.

core.async is a clojure/clojurescript library to allow a model of asynchronous programming similar to that of the Go language.

229 questions
0
votes
1 answer

Clojurescript + Om: wait for state change, then do something

I am trying to make a Clojurescript app that shows recipes. Relevant code follows (also available as a gist): (defn load-recipes [data] (go (if (not (:loaded? @data)) (let [recipes-data (
Michiel Borkent
  • 31,814
  • 15
  • 78
  • 134
0
votes
0 answers

async update items on list from multiple channels

Here is what I'm trying to do: I'm doing an app that displays a list of events, when I create the event, the event is a core.async channels, what I want to do is, given the channel was first added it should read and them render that state (what's ok…
Wilker Lucio
  • 2,131
  • 1
  • 18
  • 11
-1
votes
2 answers

Streaming data to the caller in JVM

I have a function which gets data periodically and then stops getting the data. This function has to return the data that it is fetching periodically to the caller of the function either As and when it gets At one shot The 2nd one is an easy…
Ashwin
  • 10,386
  • 29
  • 103
  • 172
-1
votes
2 answers

flushing the content of a core.async channel

Consider a core.async channel which is created like so: (def c (chan)) And let's assume values are put and taken to this channel from different places (eg. in go-loops). How would one flush all the items on the channel at a certain time? For…
Anton Harald
  • 5,402
  • 2
  • 17
  • 45
1 2 3
15
16