JuliaStats / Klara.jl

MCMC inference in Julia
Other
167 stars 38 forks source link

How to replace consume and produce with Channels #165

Closed papamarkou closed 7 years ago

papamarkou commented 7 years ago

@amitmurthy, @ViralBShah I got a deprecation warning while trying to upgrade to Julia v0.6, saying that the consume() and produce() functions are not available anymore, and that I should use Channels.

The usage of channels is not clear to me yet. Would it be possible to provide a toy example of how instead of consuming or producing a task I could acquire the same result using channels?

papamarkou commented 7 years ago

Removed task implementation, allowing only the conventional one.