README.md in threads-0.2.0 vs README.md in threads-0.3.0

- old
+ new

@@ -28,12 +28,20 @@ You can put whatever you want into the block. The code will be executed from five threads, concurrently. You can also make sure the code block runs only a specific number of times specifying the argument in the `assert` method (it can't be smaller than the amount of threads): ```ruby -require 'threads' Threads.new(5).assert(20) do |i, r| puts "Hello from the thread no.#{i}, repetition no.#{r}" +end +``` + +You can also provide a logger, which will print exception backtraces. +It has to implement either method `error(msg)` or `puts(msg)`: + +```ruby +Threads.new(5, log: STDOUT).assert do + this_code_fails_for_sure end ``` That's it.