Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

An Actor library that uses the Rubinius core API

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 examples
Octocat-spinner-32 lib
Octocat-spinner-32 spec
Octocat-spinner-32 .gitignore
Octocat-spinner-32 LICENSE
Octocat-spinner-32 README.txt
Octocat-spinner-32 rubinius-actor.gemspec
README.txt
Rubinius-Actor
==============

An implementation of the Actor concurrency model, from the Rubinius project.

Depends on Rubinius's core API class "Channel", built into Rubinius and
available for JRuby via the rubinius-core-api gem.

Installation
============

gem install "rubinius-actor"


Usage
=====

require 'rubinius/actor'
include Rubinius::Actor
this_io = STDOUT
actor = Actor.spawn{loop{
  Actor.receive{|m|
    m.when(IO){|io|
      sleep 3
      io << "\n***\nHi there! It's #{Time.now}!\n***\n"}
    }
  }
}
actor << this_io

Contribution
============


TODO
====


Credits
=======

Copyright 2007-2008  MenTaLguY <mental@rydia.net>
          2007-2011  Evan Phoenix <evan@fallingsnow.net>
Something went wrong with that request. Please try again.