Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions guides/getting-started/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ In some methods, you may want to implement a fan-out or map-reduce. That require

```ruby
def fetch_all(urls, parent: Async::Task.current)
urls.map do
urls.map do |url|
parent.async do
fetch(url)
end
Expand All @@ -136,7 +136,7 @@ or:
```ruby
def fetch_all(urls)
Sync do |parent|
urls.map do
urls.map do |url|
parent.async do
fetch(url)
end
Expand Down