Examples of using Channels

22 views
Skip to first unread message

Arindam Mukherjee

unread,
Aug 4, 2016, 2:26:45 PM8/4/16
to Concurrent Ruby
I have very little background in Golang. Are there code snippets that I could refer to, to understand how to use Channels?

Chris Seaton

unread,
Aug 5, 2016, 7:48:38 AM8/5/16
to Arindam Mukherjee, Concurrent Ruby
If you can squint enough to read some Go code I’d read their tutorials. We can help you translate the syntax to Ruby and to Concurrent Ruby if you need that (try our Gitter channel https://gitter.im/ruby-concurrency/concurrent-ruby for interactive help).


Chris

On 4 Aug 2016, at 19:26, Arindam Mukherjee <arindam....@gmail.com> wrote:

I have very little background in Golang. Are there code snippets that I could refer to, to understand how to use Channels?

--
You received this message because you are subscribed to the Google Groups "Concurrent Ruby" group.
To unsubscribe from this group and stop receiving emails from it, send an email to concurrent-ru...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Jerry D'Antonio

unread,
Aug 5, 2016, 8:22:39 AM8/5/16
to Chris Seaton, Arindam Mukherjee, Concurrent Ruby
The "examples" folder in the concurrent-ruby GitHub folder has all the examples from "A Tour of Go" and "Go by Example" rewritten in Ruby using our channel implementation.

Beware, however, that our channel implementation is experimental, not production ready, and being completely rewritten (PR #519). The new implementation will still be as true to Go as possible while still making sense for Ruby.

Best regards,
Jerry


To unsubscribe from this group and stop receiving emails from it, send an email to concurrent-ruby+unsubscribe@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Concurrent Ruby" group.
To unsubscribe from this group and stop receiving emails from it, send an email to concurrent-ruby+unsubscribe@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages