Skip to content

Conversation

chris-martin
Copy link
Member

Proposed modifications to #40

friedbrice and others added 5 commits February 22, 2022 15:12
Use concurrently_ and forConcurrently_ from the async package instead
of forkIO.

Use a TVar to tell the printing thread when to stop instead of just
stopping when the queue is empty, because an empty queue doesn't
necessarily mean nothing else will get logged.

Use a continuation passing style to obtain the concurrent log action,
because this is encouraged by the async package to ensure that all
threads get canceled in the event of an exception.
but why is the unsynchronized output not jumbled up anymore?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants