[erlang-questions] is this a shell bug?
Robert Raschke
<
>
Mon Apr 23 14:28:08 CEST 2012
Intriguing. I was unaware of that. Thank you!
On Mon, Apr 23, 2012 at 12:01 PM, Hynek Vychodil <
> wrote:
> Doesn't flush() work as well for you?
>
> On Mon, Apr 23, 2012 at 12:23 PM, Robert Raschke
> <
> wrote:
> > Whenever I tinker with message sending and receiving in the shell, I
> make me
> > this handy small fun (or similar) to ease my life:
> >
> > (
)1> R = fun () -> receive X -> X after 0 ->
> > no_messages_pending end end.
> > #Fun<erl_eval.20.21881191>
> > (
)2> self() ! {a, message}.
> > {a,message}
> > (
)3> R().
> > {a,message}
> > (
)4> R().
> > no_messages_pending
> > (
)5>
> >
> >
> > Robby
> >
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20120423/92281130/attachment.html>
More information about the erlang-questions
mailing list