[Haskell-cafe] servant streaming question
Viktor Dukhovni
ietf-dane at dukhovni.org
Mon Jul 10 13:26:51 UTC 2023
On Mon, Jul 10, 2023 at 12:03:37PM +0000, Zoran BoĆĄnjak wrote:
> It should however be possible by forking a new thread, write elements
> from Shell to some shared buffer and let StepT read from this buffer.
Rather than a "shared buffer", it shouldn't be too difficult with a
BoundedChan.
https://hackage.haskell.org/package/BoundedChan-1.0.3.0
just write to the BoundedChan on the "Shell" side, and read from it on
the "SourceT" (StepT) side.
--
Viktor.
More information about the Haskell-Cafe
mailing list