Method: Garcon::Delay#reconfigure
- Defined in:
- lib/garcon/task/delay.rb
#reconfigure { ... } ⇒ true, false
Reconfigures the block returning the value if still ‘#incomplete?`
158 159 160 161 162 163 164 165 166 167 168 169 |
# File 'lib/garcon/task/delay.rb', line 158 def reconfigure(&block) mutex.lock raise ArgumentError.new('no block given') unless block_given? unless @computing @task = block true else false end ensure mutex.unlock end |