This repository is private.
All pages are served over SSL and all pushing and pulling is done over SSH.
No one may fork, clone, or view it unless they are added as a member.
Every repository with this icon (
) is private.
Every repository with this icon (
This repository is public.
Anyone may fork, clone, or view it.
Every repository with this icon (
) is public.
Every repository with this icon (
ninja /
| name | age | message | |
|---|---|---|---|
| |
.gitignore | ||
| |
LICENSE | ||
| |
README.rdoc | ||
| |
Rakefile | ||
| |
lib/ | ||
| |
ninja.gemspec | ||
| |
test/ |
README.rdoc
Ninja!
He runs in the background, without being seen
Install
gem install ninja
Use
require "ninja/threaded"
# Use a thread pool to run the background jobs
Ninja.hide_in(Ninja::Threaded.new(4))
class FooBar
include Ninja
def my_method
# some code
in_background do
# this code will run in background
end
# mode code
end
end
Credits
| Author: | Nicolás Sanguinetti (foca) |
| Contributors: | James Tucker (raggi) |
| License: | MIT (see LICENSE file) |








