Class | Needle::Lifecycle::Threaded |
In: |
lib/needle/lifecycle/threaded.rb
|
Parent: | Needle::Pipeline::Element |
The instantiation pipeline element that enforces the singleton multiplicity, on a per-thread basis.
Returns the cached reference, if it has been previously cached for the current thread. Otherwise, invokes the next element in the pipeline and caches the result. The cached reference is returned.