Class: Foxbat::Future
- Inherits:
-
Object
- Object
- Foxbat::Future
- Defined in:
- lib/foxbat/future.rb
Class Method Summary collapse
Class Method Details
.schedule(op, cb, executor) ⇒ Object
7 8 9 10 11 |
# File 'lib/foxbat/future.rb', line 7 def self.schedule(op, cb, executor) future = ListenableFutureTask.create(op) future.addListener(cb, executor) executor.submit(future) end |