Skip to content

Commit b0c69fd

Browse files
committed
Make both Eventuallys asynchronous in README
1 parent 0ad807d commit b0c69fd

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,10 @@ An `Eventually` object contains a value that will eventually be available, perha
8484
8585
>> eventually_result = eventually_string.and_then do |string|
8686
Eventually.new do |success|
87-
sleep 5
88-
success.call(string.upcase)
87+
Thread.new do
88+
sleep 5
89+
success.call(string.upcase)
90+
end
8991
end
9092
end
9193
=> #<struct Monads::Eventually block=#<Proc>>

0 commit comments

Comments
 (0)