Re: Core.async, Rules for passing clojure vals to go block

2014-01-03 Thread Timothy Washington
Ok, got it. It was an oversight on my part. From a config file, I was pulling in *myns/myfn*. But this is just a symbol. I needed to resolve it, and deref the var that it pointed to. So now the below works. Tricky, but I should have caught it earlier. (apply @(resolve *afn*) params) Thanks guy

Re: Core.async, Rules for passing clojure vals to go block

2014-01-03 Thread Timothy Washington
;> Thanks >>>>> >>>>> Tim Washington >>>>> Interruptsoftware.com <http://interruptsoftware.com> >>>>> >>>>> >>>>> On Fri, Jan 3, 2014 at 2:39 PM, Jason Wolfe wrote: >>

Re: Core.async, Rules for passing clojure vals to go block

2014-01-03 Thread Cedric Greevey
t;>>> >>>> >>>> On Fri, Jan 3, 2014 at 2:39 PM, Jason Wolfe wrote: >>>> >>>>> Thanks for the report. >>>>> >>>>> Schema fns inside of go blocks seem to work fine for me. It seems >>>>> likely that you

Re: Core.async, Rules for passing clojure vals to go block

2014-01-03 Thread Jason Wolfe
blocks seem to work fine for me. It seems >>>> likely that you're seeing an exception inside the go block, which is >>>> swallowed by default: >>>> >>>> user> (clojure.core.async/go (println "A")) >>>> #>>

Re: Core.async, Rules for passing clojure vals to go block

2014-01-03 Thread Cedric Greevey
ide of go blocks seem to work fine for me. It seems >>>> likely that you're seeing an exception inside the go block, which is >>>> swallowed by default: >>>> >>>> user> (clojure.core.async/go (println "A")) >>>> #>&

Re: Core.async, Rules for passing clojure vals to go block

2014-01-03 Thread Cedric Greevey
ntln "A")) >>> #>> 46ae10a6> >>> A >>> >>> user> (clojure.core.async/go (throw (RuntimeException.)) (println "A")) >>> #>> 427c78c1> >>> >>> Would you mind wrapping the body of your go block in a tr

Re: Core.async, Rules for passing clojure vals to go block

2014-01-03 Thread Timothy Washington
eException.)) (println "A")) >>> #>> 427c78c1> >>> >>> Would you mind wrapping the body of your go block in a try/catch and >>> printing the exception stack trace, or posting a gist that demonstrates the >>> issue so I can look into it f

Re: Core.async, Rules for passing clojure vals to go block

2014-01-03 Thread Jason Wolfe
; clojure.core.async.impl.channels.ManyToManyChannel@427c78c1> >> >> Would you mind wrapping the body of your go block in a try/catch and >> printing the exception stack trace, or posting a gist that demonstrates the >> issue so I can look into it further? >> >>

Re: Core.async, Rules for passing clojure vals to go block

2014-01-03 Thread Timothy Washington
eption.)) (println "A")) >>> #>> clojure.core.async.impl.channels.ManyToManyChannel@427c78c1> >>> >>> Would you mind wrapping the body of your go block in a try/catch and >>> printing the exception stack trace, or posting a gist that demonst

Re: Core.async, Rules for passing clojure vals to go block

2014-01-03 Thread Timothy Baldridge
go (throw (RuntimeException.)) (println "A")) >> #> clojure.core.async.impl.channels.ManyToManyChannel@427c78c1> >> >> Would you mind wrapping the body of your go block in a try/catch and >> printing the exception stack trace, or posting a gist that demonstrate

Re: Core.async, Rules for passing clojure vals to go block

2014-01-03 Thread Timothy Washington
ould you mind wrapping the body of your go block in a try/catch and > printing the exception stack trace, or posting a gist that demonstrates the > issue so I can look into it further? > > Thanks! > > > On Friday, January 3, 2014 10:21:16 AM UTC-8, frye wrote: > >> Forw

Re: Core.async, Rules for passing clojure vals to go block

2014-01-03 Thread Jason Wolfe
C-8, frye wrote: > > Forwarding... > > -- Forwarded message -- > From: Timothy Washington > > Date: Fri, Jan 3, 2014 at 1:17 PM > Subject: Re: Core.async, Rules for passing clojure vals to go block > To: Shaun Gilchrist > > > > I'm using Prismatic's Sche

Fwd: Core.async, Rules for passing clojure vals to go block

2014-01-03 Thread Timothy Washington
Forwarding... -- Forwarded message -- From: Timothy Washington Date: Fri, Jan 3, 2014 at 1:17 PM Subject: Re: Core.async, Rules for passing clojure vals to go block To: Shaun Gilchrist I'm using Prismatic's Schema in my code base. Now, it looks like defining some

Core.async, Rules for passing clojure vals to go block

2013-12-25 Thread Timothy Washington
Hi there, For core.async, what are the rules for, *i)* having vals from a function closure, *ii)* passed into a go block. In the example below, I cannot pass in the system-atom to the handle function. The call will just die silently, without throwing any exception. Instead, I have to pass in a nil