helm icon indicating copy to clipboard operation
helm copied to clipboard

Have some way to destroy the engine

Open z0w0 opened this issue 12 years ago • 2 comments

Currently Helm works like Elm does - there's no way to kill rendering (AFAIK). There needs to be some sort of state sent back as well as the Element objects used for rendering (as well as something like Sound). This state would allow you to signify that the engine should be destroyed.

z0w0 avatar Dec 14 '13 05:12 z0w0

It needs to be type-safe, though. We can't just use a Maybe Element or the equivalent; we have to force the user to never do anything after the engine is killed.

pthariensflame avatar Dec 14 '13 06:12 pthariensflame

Note that this will be quite easy to implement in Helm 1.0. All that's needed is a new quit function that returns a Cmd that stops the engine at the next tick, which will then safely close up resources & is type safe.

z0w0 avatar Oct 03 '16 06:10 z0w0