Like normal clojure code, gos don't support a recur that jumps out through
a try. However, the go macro should be patched to bring that to the
attention of the user.

Timothy


On Tue, Jan 7, 2014 at 2:22 PM, Luc Prefontaine <lprefonta...@softaddicts.ca
> wrote:

> Just got your email, I remember
> vaguely about this issue maybe when
> Tim did is presentation at fhe
> Conj.
>
> Or maybe on the mailing list.
>
> You may try what I described
> in my previous email and make
> your mind about this.
>
> Luc P.
> >
> > I've changed all of the go blocks to thread and got an exception that I
> > cannot recur over a try catch. mm.. did not get this error in my go
> block.
> > removing the recur's over try catch blocks makes the code work now with
> > both go and thread. At least this is what I've changed now and the error
> > has gone away.
> >
> >
> >
> > On Tuesday, 7 January 2014 21:55:06 UTC+1, Gerrit Jansen van Vuuren
> wrote:
> > >
> > > I do not have a single close! statement in my code anywhere. I've
> double
> > > checked with grep -lhr "close\!" . through my whole codebase and all
> the
> > > projects in it.
> > >
> > >
> > >
> > > On Tuesday, 7 January 2014 21:05:53 UTC+1, Luc wrote:
> > >>
> > >> You are trying to close a nil
> > >> channel.
> > >>
> > >> W/O the code it's all I can say :)
> > >> Did you check to make sure
> > >> you are not trying to handle nil
> > >> as a channel ?
> > >>
> > >> Luc P.
> > >>
> > >>
> > >> > Hi,
> > >> >
> > >> > I'm getting the following error over and over again in my code, I've
> > >> tried
> > >> > adding in some print statement and suddenly the error went away and
> my
> > >> code
> > >> > worked again, then today I got the same error yet again. I suspect
> this
> > >> > might be a race condition or something similar. I can take the same
> > >> library
> > >> > from the repl and it works, but when I use it from inside another
> app I
> > >> > suddenly get this problem error only at certain times.
> > >> >
> > >> > I've removed all close! statements from my code and I still get the
> > >> same
> > >> > error :(,
> > >> >
> > >> > The code
> > >> > is
> > >>
> https://github.com/gerritjvv/clj-tcp/blob/master/clj-tcp/src/clj_tcp/client.clj
> > >> >
> > >> > Exception in thread "async-dispatch-6"
> > >> java.lang.IllegalArgumentException:
> > >> > No implementation of method: :close! of protocol:
> > >> > #'clojure.core.async.impl.protocols/Channel found for class: nil
> > >> > at clojure.core$_cache_protocol_fn.invoke(core_deftype.clj:541)
> > >> > at
> > >> >
> > >>
> clojure.core.async.impl.protocols$fn__779$G__774__784.invoke(protocols.clj:21)
> > >>
> > >> > at
> > >> >
> > >>
> clojure.core.async.impl.ioc_macros$run_state_machine_wrapped.invoke(ioc_macros.clj:818)
> > >>
> > >> > at clj_tcp.client$client$fn__6374.invoke(client.clj:334)
> > >> > at clojure.lang.AFn.run(AFn.java:24)
> > >> > at
> > >> >
> > >>
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
> > >>
> > >> > at
> > >> >
> > >>
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
> > >>
> > >> > at java.lang.Thread.run(Thread.java:724)
> > >> >
> > >> > Any ideas?
> > >> >
> > >> >
> > >> >
> > >> >
> > >> >
> > >> > --
> > >> > --
> > >> > You received this message because you are subscribed to the Google
> > >> > Groups "Clojure" group.
> > >> > To post to this group, send email to clo...@googlegroups.com
> > >> > Note that posts from new members are moderated - please be patient
> with
> > >> your first post.
> > >> > To unsubscribe from this group, send email to
> > >> > clojure+u...@googlegroups.com
> > >> > For more options, visit this group at
> > >> > http://groups.google.com/group/clojure?hl=en
> > >> > ---
> > >> > You received this message because you are subscribed to the Google
> > >> Groups "Clojure" group.
> > >> > To unsubscribe from this group and stop receiving emails from it,
> send
> > >> an email to clojure+u...@googlegroups.com.
> > >> > For more options, visit https://groups.google.com/groups/opt_out.
> > >> >
> > >> --
> > >> Luc Prefontaine<lprefo...@softaddicts.ca> sent by ibisMail!
> > >>
> > >
> >
> > --
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Clojure" group.
> > To post to this group, send email to clojure@googlegroups.com
> > Note that posts from new members are moderated - please be patient with
> your first post.
> > To unsubscribe from this group, send email to
> > clojure+unsubscr...@googlegroups.com
> > For more options, visit this group at
> > http://groups.google.com/group/clojure?hl=en
> > ---
> > You received this message because you are subscribed to the Google
> Groups "Clojure" group.
> > To unsubscribe from this group and stop receiving emails from it, send
> an email to clojure+unsubscr...@googlegroups.com.
> > For more options, visit https://groups.google.com/groups/opt_out.
> >
> --
> Luc Prefontaine<lprefonta...@softaddicts.ca> sent by ibisMail!
>
> --
> --
> You received this message because you are subscribed to the Google
> Groups "Clojure" group.
> To post to this group, send email to clojure@googlegroups.com
> Note that posts from new members are moderated - please be patient with
> your first post.
> To unsubscribe from this group, send email to
> clojure+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en
> ---
> You received this message because you are subscribed to the Google Groups
> "Clojure" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to clojure+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>



-- 
“One of the main causes of the fall of the Roman Empire was that–lacking
zero–they had no way to indicate successful termination of their C
programs.”
(Robert Firth)

-- 
-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to