Module: Async::Base
- Defined in:
- lib/async/base.rb
Overview
A simple mixin that allows you to asynchronously process methods in a class similar to Go routines
Instance Method Summary collapse
Instance Method Details
#async ⇒ Object
26 27 28 |
# File 'lib/async/base.rb', line 26 def async Thread.new { instance_eval &Proc.new } end |