Those are Elm 0.16 effects are something totally different. There is no
reason why tick tasks couldn't be batched in their execution.

There are certainly things that Elm 0.17 and 0.18 are doing in effects
managers that aren't feasible with tasks right now because tasks are in a
sense too primitive, but basically what effects managers are doing is
serving as a level of indirection to route commands to other Elm code to
decide how to process them. I could imagine a similar notion of effects
manager tasks that get handed to the appropriate effects manager for
eventual fulfillment. Or instead of wrapping tasks inside of commands using
Task.perform, wrap the effects manager "command" construct inside of a task
and have execution of the task feed the underlying "command" to the effects
manager.

Mark

On Sat, Dec 10, 2016 at 10:58 AM, Janis Voigtländer <
[email protected]> wrote:

> You probably already suspect as much, but anyway: I think (and I’m not
> authoritative at that) that the following part is the crux of the matter.
>
> Commands tie into the effects manager system but that’s at this point
> still an undocumented portion of Elm and I don’t see why effects managers
> could not also work with tasks.
>
> Do you have real reason to believe that effect managers could work with
> tasks? That you don’t see why not seems to be a consequence of you not
> seeing any information about their internals at all, right?
>
> If you were told that indeed effect managers cannot work as well with
> tasks (for example, that the “batching of ticks” trick mentioned in the
> documentation of old http://package.elm-lang.org/
> packages/evancz/elm-effects/2.0.1/Effects#toTask would not be possible),
> would that make you retract the proposal to have only Task, instead of
> Task and Cmd?
> ​
>
> --
> You received this message because you are subscribed to the Google Groups
> "Elm Discuss" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
>
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups "Elm 
Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to