Hi,
I find this idiom bit tedious:
Thread.new{ Thread.current['foo'] = 'bar' }
What about always yielding the current thread as the last argument?
# With no arguments
Thread.new{ |curr| curr['foo'] = 'bar' }
# With some arguments
Thread.new(x,y){ |x,y,curr| curr['foo'] = 'bar' }
I'm guessing there are issues I haven't considered, but I thought I
would at least toss this out there.
Thanks,
Dan
This communication is the property of Qwest and may contain confidential or
privileged information. Unauthorized use of this communication is strictly
prohibited and may be unlawful. If you have received this communication n error, please immediately notify the sender by reply e-mail and destroy
all copies of the communication and any attachments.