https://github.com/rubinius/rubinius-actor
An Actor library that uses the Rubinius core API
https://github.com/rubinius/rubinius-actor
Last synced: about 2 months ago
JSON representation
An Actor library that uses the Rubinius core API
- Host: GitHub
- URL: https://github.com/rubinius/rubinius-actor
- Owner: rubinius
- License: other
- Created: 2011-06-15T22:07:17.000Z (almost 14 years ago)
- Default Branch: master
- Last Pushed: 2012-12-11T23:42:26.000Z (over 12 years ago)
- Last Synced: 2025-03-26T07:36:18.720Z (2 months ago)
- Language: Ruby
- Homepage:
- Size: 136 KB
- Stars: 23
- Watchers: 47
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.txt
- License: LICENSE
Awesome Lists containing this project
README
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_ioContribution
============TODO
====Credits
=======Copyright 2007-2008 MenTaLguY
2007-2011 Evan Phoenix