README.md in async-1.14.0 vs README.md in async-1.15.0
- old
+ new
@@ -268,10 +268,10 @@
```ruby
require 'async'
Async do |task|
- task.timeout(1) do
+ task.with_timeout(1) do
task.sleep 100
rescue Async::TimeoutError
puts "I timed out!"
end
end