Class: Plumbing::Provider

Inherits:
Object show all
Includes:
Literal::Types, Actor
Defined in:
lib/plumbing/provider.rb,
lib/plumbing/provider/router.rb

Defined Under Namespace

Classes: Router

Constant Summary

Constants included from Actor

Actor::FIBER_KEY, Actor::NotSupported

Instance Attribute Summary

Attributes included from Actor

#worker

Instance Method Summary collapse

Methods included from Actor

#after, #cancel_deferred, #current_sender, #current_senders, included

Methods included from Actor::Configuration

#register, #selected_worker_type, #uses, #worker_for, #worker_types, #workers

Constructor Details

#initializeProvider

Returns a new instance of Provider.



10
11
12
13
14
15
# File 'lib/plumbing/provider.rb', line 10

def initialize
  super
  @values = {}
  @router = Router.new
  @lock = Mutex.new
end

Instance Method Details

#[](path) ⇒ Object



56
# File 'lib/plumbing/provider.rb', line 56

def [](path) = get(path:).await