# Init a task in a module + avoid circular import?

**URL:** <https://discourse.elm-lang.org/t/init-a-task-in-a-module-avoid-circular-import/6287>\
**Category:** Learn\
**Created:** [September 18, 2020, 12:02am UTC](https://discourse.elm-lang.org/t/init-a-task-in-a-module-avoid-circular-import/6287 "2020-09-18T00:02:39Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![pdamoc](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.elm-lang.org/pdamoc/32/36_2.png) [@pdamoc](https://discourse.elm-lang.org/u/pdamoc)\
**Post date:** [September 18, 2020, 3:30am UTC](https://discourse.elm-lang.org/t/init-a-task-in-a-module-avoid-circular-import/6287/2 "2020-09-18T03:30:39Z")

</div>

> [@Yannick971](#):
>
> I needed it to be initialized on the app startup. (This value is computed from the current time, to give you context).

You can pass arguments (like the current time if you got it as a flag) to the `init` from another module.

> [@Yannick971](#):
>
> Can I just use `init` without `view` ? Is there something like `view.None`

Can you provide more information about this? `init` is just a regular function, it is not obvious why it would need a `view`. In any case, an empty view is usually `text ""`.

---

_[View the full topic](https://discourse.elm-lang.org/t/init-a-task-in-a-module-avoid-circular-import/6287)._
