I use Task.Supervisor.async_stream_nolink/6
to start dynamic tasks under a Task.Supervisor
and I cannot figure out how can I set the restart strategy of those tasks to :transient
instead of the default :temporary
. Is there an option to do this?
https://hexdocs.pm/elixir/Task.html#module-statically-supervised-tasks
The later parts of this section might be what you’re looking for.
1 Like