Project

ninja

0.01
No commit activity in last 3 years
No release in over 3 years
Run background tasks easily
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

 Project Readme

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)