Class: Kamal::Cli::Healthcheck::Barrier
- Inherits:
-
Object
- Object
- Kamal::Cli::Healthcheck::Barrier
- Defined in:
- lib/kamal/cli/healthcheck/barrier.rb
Instance Method Summary collapse
- #close ⇒ Object
-
#initialize ⇒ Barrier
constructor
A new instance of Barrier.
- #open ⇒ Object
- #wait ⇒ Object
Constructor Details
#initialize ⇒ Barrier
Returns a new instance of Barrier.
4 5 6 |
# File 'lib/kamal/cli/healthcheck/barrier.rb', line 4 def initialize @ivar = Concurrent::IVar.new end |
Instance Method Details
#close ⇒ Object
8 9 10 |
# File 'lib/kamal/cli/healthcheck/barrier.rb', line 8 def close set(false) end |
#open ⇒ Object
12 13 14 |
# File 'lib/kamal/cli/healthcheck/barrier.rb', line 12 def open set(true) end |