# Composing a Task with a function that returns a Cmd

**URL:** <https://discourse.elm-lang.org/t/composing-a-task-with-a-function-that-returns-a-cmd/6383>\
**Category:** Learn\
**Created:** [October 9, 2020, 11:13am UTC](https://discourse.elm-lang.org/t/composing-a-task-with-a-function-that-returns-a-cmd/6383 "2020-10-09T11:13:20Z")\
**Posts on this page:** 1\
**Showing post:** 8

<div class="post-metadata">

**Author:** ![ursi](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.elm-lang.org/ursi/32/3166_2.png) [@ursi](https://discourse.elm-lang.org/u/ursi)\
**Post date:** [October 13, 2020, 6:50pm UTC](https://discourse.elm-lang.org/t/composing-a-task-with-a-function-that-returns-a-cmd/6383/8 "2020-10-13T18:50:34Z")

</div>

I believe most likely it does. `Cmd.none == Cmd.none` does work but trying to compare commands in general will result in an error.

---

_[View the full topic](https://discourse.elm-lang.org/t/composing-a-task-with-a-function-that-returns-a-cmd/6383)._
