Forum: Ruby Futures and JRuby: The Omnibus Concurrency Library 0.2.1

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
912c61d9da47754de7039f4271334a9f?d=identicon&s=25 MenTaLguY (Guest)
on 2007-05-29 02:54
(Received via mailing list)
Just a quick note that I've released version 0.2.1 of the 'concurrent'
gem, which provides Actors, data-parallel programming, and transparent
futures (plus lazy evaluation) for Ruby.  This one adds:

 * Actor timeouts
 * Cleaned up support for Futures
 * Support for JRuby

Downloadables are here:

 http://rubyforge.org/frs/?group_id=3690&release_id=12005

I'll be working on documentation for the next release, but until then,
here's a brief example of futures in action:

 require 'concurrent/futures'
 include Concurrent::Futures

 f = Future.async { 3 * 3 } # the block runs in a new thread
 f.inspect # => #<Thunk #<Thread:0xdeadcafe run>>
 f + 1 # waits for thread to complete, then => 10
 f.inspect # => 9

-mental
86e33dee4a89a8879a26487051c216a8?d=identicon&s=25 Michael Fellinger (Guest)
on 2007-05-29 03:36
(Received via mailing list)
On 5/29/07, MenTaLguY <mental@rydia.net> wrote:
>  http://rubyforge.org/frs/?group_id=3690&release_id=12005
Do you plan on releasing the scheduler dependency soon? :)
912c61d9da47754de7039f4271334a9f?d=identicon&s=25 MenTaLguY (Guest)
on 2007-05-29 04:25
(Received via mailing list)
On Tue, 2007-05-29 at 10:35 +0900, Michael Fellinger wrote:
> Do you plan on releasing the scheduler dependency soon? :)

Wow, I thought I'd already released it.  Guess not though...

Here you go:

 http://rubyforge.org/frs/?group_id=3644

-mental
912c61d9da47754de7039f4271334a9f?d=identicon&s=25 MenTaLguY (Guest)
on 2007-05-29 04:32
(Received via mailing list)
Incidentally, I'd like to hear from anyone using the library -- what
they like and what they don't.  It'll help me a lot to decide where to
take things.

Also, sorry again about the scheduler mix-up.  It should be uploaded
now.

-mental
This topic is locked and can not be replied to.