pub fn daemon<State, Message, Theme, Renderer>(
title: impl Title<State>,
update: impl Update<State, Message>,
view: impl for<'a> View<'a, State, Message, Theme, Renderer>,
) -> Daemon<impl Program<State = State, Message = Message, Theme = Theme>>
Expand description
Creates an iced Daemon
given its title, update, and view logic.
A Daemon
will not open a window by default, but will run silently
instead until a Task
from window::open
is returned by its update logic.
Furthermore, a Daemon
will not stop running when all its windows are closed.
In order to completely terminate a Daemon
, its process must be interrupted or
its update logic must produce a Task
from exit
.