Method: XBar::Mapper::ClassMethods#unregister
- Defined in:
- lib/xbar/mapper.rb
#unregister(thread_spec = Thread.current) ⇒ Object
Unregister the proxy for the current thread, or for the specified thread. A thread can be specified by passing a Thread instance or its object_id.
206 207 208 209 |
# File 'lib/xbar/mapper.rb', line 206 def unregister(thread_spec = Thread.current) thread_spec = thread_spec.object_id if thread_spec.instance_of?(Thread) XBar::Mapper.proxies.delete(thread_spec) end |