wait for threads to finish in a ruby wal
Merge pull request #1 from saks/patch-1

wait for threads to finish in a ruby way