In async_stream there is a separate process that controls the stream, so there isn't much the parent process can do, even in terms of monitors. If you need monitors and control, then it is best to not use the stream. I will update the docs, thanks!
On Fri, May 15, 2020 at 9:51 PM Anastasiya Dyachenko <[email protected]> wrote: > Hi! > I propose to add monitoring of tasks, created in > Task.Supervisor.async_stream_nolink, so it would work the same as > Task.Supervisor.async_nolink for cases when it used in OTP behaviour. > For now, there is no info in docs that there are no monitoring and > handle_info would not call, cause docs say it works same as async_nolink. > And I think it would be better to repeat that behaviour at > async_stream_nolink, cause it is barely possible to monitor these tasks > manually. At least it would be great to add info in docs that there are no > monitoring and example how to add monitoring manually. Thanks! > > How it works in async_nolink > https://hexdocs.pm/elixir/Task.Supervisor.html#async_nolink/3 > Docs for async_stream_nolink > https://hexdocs.pm/elixir/Task.Supervisor.html#async_stream_nolink/4 > > -- > You received this message because you are subscribed to the Google Groups > "elixir-lang-core" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/elixir-lang-core/f41d0091-23c8-4af1-9bb6-67c8f22f54f1%40googlegroups.com > <https://groups.google.com/d/msgid/elixir-lang-core/f41d0091-23c8-4af1-9bb6-67c8f22f54f1%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- You received this message because you are subscribed to the Google Groups "elixir-lang-core" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/elixir-lang-core/CAGnRm4JHNg%2BDT_CvDqb99V7OYivjdFboaX-dF8CTq5EfM%3DHwGg%40mail.gmail.com.
