Hi Johan, It's a blocking call used to ensure all previous messages have been processed ; hence the flush.
Max On 2 June 2016 at 18:54, <[email protected]> wrote: > Hi > I'm reading through the Elixir Logger source code and I'm having trouble > to understand the following statment: > _ = GenEvent.which_handlers(:error_logger) > > It appears both in the flush method(Line 405) and in add_backend(420) and > remove_backend(440) > So I guess that the statement flushes error_logger messages, but I don't > understand how or why. Can someone please explain? > > I'm also curious if the "_ = ..." part has any effect at all or is it only > there to show intent. > > Thanks, > Johan > > -- > You received this message because you are subscribed to the Google Groups > "elixir-lang-talk" 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-talk/7ee66216-8d50-42a1-8ca0-6b2ea7a5faa0%40googlegroups.com > <https://groups.google.com/d/msgid/elixir-lang-talk/7ee66216-8d50-42a1-8ca0-6b2ea7a5faa0%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "elixir-lang-talk" 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-talk/CAOPKHeuWxkBFjSk5KATBc-jgi2KT7tv%2BpjG%3D-gDFgxa2W%3D_57w%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
