We can assign a thread-local variable on Ruby, like so:
Thread.current[:foo] = 1
Thread.current[:bar] = 2
But how do we list / enumerate those variables at a later time?
We can assign a thread-local variable on Ruby, like so:
Thread.current[:foo] = 1
Thread.current[:bar] = 2
But how do we list / enumerate those variables at a later time?