Lazy list iterator for message queues. Options are passed to
thread_get_message/3. In addition, the following options are
processed:
- chunk(ChunkSize)
- Determines the read chunk size. Default is 1.
A thread can listen to its own message queue using
thread_self(Me),
lazy_list(lazy_message_queue(Me, []), List),
phrase(action(List)).