Add queue.truncate
Do not delete tasks while iterating in queue.truncate()
Fix typos
Merge pull request #3 from rybakit/truncate

Add queue.truncate