Module: Is::Async
- Included in:
- Core::Async::Collection, Core::Async::Collection, Core::Async::Enumerator, Core::Async::Reactor
- Defined in:
- lib/is/async.rb
Overview
- public
-
Makes objects async-aware.
Instance Method Summary collapse
-
#async(&block) ⇒ Object
- public
-
Call behavior asychronously, returning a future.
Instance Method Details
#async(&block) ⇒ Object
- public
-
Call behavior asychronously, returning a future.
14 15 16 17 18 19 20 |
# File 'lib/is/async.rb', line 14 def async(&block) if block Core::Async::Future.new(&block) else Core::Async::Wrapper.new(self) end end |