Class: LaunchDarkly::SynchronousMessage
- Inherits:
-
Object
- Object
- LaunchDarkly::SynchronousMessage
show all
- Defined in:
- lib/ldclient-rb/events.rb
Instance Method Summary
collapse
Constructor Details
Returns a new instance of SynchronousMessage.
92
93
94
|
# File 'lib/ldclient-rb/events.rb', line 92
def initialize
@reply = Concurrent::Semaphore.new(0)
end
|
Instance Method Details
#completed ⇒ Object
96
97
98
|
# File 'lib/ldclient-rb/events.rb', line 96
def completed
@reply.release
end
|
#wait_for_completion ⇒ Object
100
101
102
|
# File 'lib/ldclient-rb/events.rb', line 100
def wait_for_completion
@reply.acquire
end
|