Skip to content

Commit

Permalink
Update docs for Task.seq
Browse files Browse the repository at this point in the history
Changes the docs for `Task.seq` to match the current correct name and
usage.
  • Loading branch information
Daniel Rivas committed Feb 21, 2024
1 parent 2117413 commit 0feb8b1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions platform/Task.roc
Original file line number Diff line number Diff line change
Expand Up @@ -212,14 +212,14 @@ batch = \current -> \next ->

map current f

## Apply a task repeatedly to a list of items, and return a list of the resulting values
## Apply each task in a list sequentially, and return a list of the resulting values.
## Each task will be awaited before beginning the next task.
##
## ```
## authors : List ID
## getAuthor : ID -> Task Author [DbError]
## fetchAuthorTasks List (Task Author [DbError])
##
## getAuthors : Task (List Author) [DbError]
## getAuthors = Task.list authors getAuthor
## getAuthors = Task.seq authorTasks
## ```
##
seq : List (Task ok err) -> Task (List ok) err
Expand Down

0 comments on commit 0feb8b1

Please sign in to comment.