Method: Cuboid::State::Application#pause

Defined in:
lib/cuboid/state/application.rb

#pauseTrueClass

Returns Pauses the framework on a best effort basis, might take a while to take effect.

Parameters:

  • block (Bool)

    ‘true` if the method should block until the pause has completed, `false` otherwise.

Returns:

  • (TrueClass)

    Pauses the framework on a best effort basis, might take a while to take effect.



225
226
227
228
229
230
231
232
233
234
235
236
# File 'lib/cuboid/state/application.rb', line 225

def pause
    @pre_pause_status ||= @status if !paused? && !pausing?

    if !paused?
        @status = :pausing
    end

    @pause_signals << :nil

    paused if !running?
    true
end