How to intercept an (infinite) stream?
I am working with the ExTwitter library and would like to be able to sometimes kill the streaming API call to change the parameters.
My current code looks something like this:
for tweet <- ExTwitter.stream_filter(track: terms) do
process_tweet tweet
end
Is there anything I can do to indicate that I no longer need messages?
+3
source to share
2 answers