Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Run tasks in the background
Ruby
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
lib
test
.gitignore
LICENSE
README.rdoc
Rakefile
ninja.gemspec

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)

Something went wrong with that request. Please try again.