Class: PuppetLanguageServer::GlobalQueues::SingleInstanceQueueJob
- Inherits:
-
Object
- Object
- PuppetLanguageServer::GlobalQueues::SingleInstanceQueueJob
- Defined in:
- lib/puppet-languageserver/global_queues/single_instance_queue.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#key ⇒ Object
readonly
Unique key for the job.
Instance Method Summary collapse
-
#initialize(key) ⇒ SingleInstanceQueueJob
constructor
A new instance of SingleInstanceQueueJob.
Constructor Details
#initialize(key) ⇒ SingleInstanceQueueJob
Returns a new instance of SingleInstanceQueueJob.
10 11 12 |
# File 'lib/puppet-languageserver/global_queues/single_instance_queue.rb', line 10 def initialize(key) @key = key end |
Instance Attribute Details
#key ⇒ Object (readonly)
Unique key for the job. The SingleInstanceQueue uses the key to ensure that only a single instance is in the queue
8 9 10 |
# File 'lib/puppet-languageserver/global_queues/single_instance_queue.rb', line 8 def key @key end |