forked from rubinius/rubinius-actor
-
Notifications
You must be signed in to change notification settings - Fork 0
An Actor library that uses the Rubinius core API
License
ebinmore/rubinius-actor
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
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 <[email protected]>
2007-2011 Evan Phoenix <[email protected]>
About
An Actor library that uses the Rubinius core API
Resources
License
Stars
Watchers
Forks
Packages 0
No packages published
Languages
- Ruby 100.0%