Skip to content

Commit

Permalink
Fix task references in docs
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewMacmurray committed Dec 17, 2023
1 parent a9d19a2 commit 921cb61
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/ConcurrentTask.elm
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ Here's a minimal complete example:
getAllTitles : ConcurrentTask Http.Error Titles
getAllTitles =
Task.map3 Titles
ConcurrentTask.map3 Titles
(getTitle "/todos/1")
(getTitle "/posts/1")
(getTitle "/albums/1")
Expand Down Expand Up @@ -145,7 +145,7 @@ Here's a minimal complete example:
( tasks, cmd ) =
ConcurrentTask.attempt
{ send = send
, pool = Task.pool
, pool = ConcurrentTask.pool
, onComplete = OnComplete
}
getAllTitles
Expand Down Expand Up @@ -524,7 +524,7 @@ Maybe you want to represent an unexpected response as a `BadBody` error for a ht
, errors = ConcurrentTask.expectErrors decodeHttpErrors
, args = encodeArgs options
}
|> ConcurrentTask.onResponseDecoderFailure (BadBody >> Task.fail)
|> ConcurrentTask.onResponseDecoderFailure (BadBody >> ConcurrentTask.fail)
-}
onResponseDecoderFailure : (Decode.Error -> ConcurrentTask x a) -> ConcurrentTask x a -> ConcurrentTask x a
Expand Down Expand Up @@ -576,7 +576,7 @@ Maybe you want to do a timestamped Http request
task : ConcurrentTask Http.Error String
task =
ConcurrentTask.Time.now
|> Task.andThen (createArticle "my article")
|> ConcurrentTask.andThen (createArticle "my article")
createArticle : String -> Time.Posix -> ConcurrentTask Http.Error String
createArticle title time =
Expand Down

0 comments on commit 921cb61

Please sign in to comment.