[Haskell-cafe] Chan with priorities

Yitzchak Gale gale at sefer.org
Mon May 26 13:51:39 UTC 2014


Bulat!
It's great to see you here.
We haven't seen you in quite a while.

Regards,
Yitz

On Mon, May 26, 2014 at 12:01 PM, Bulat Ziganshin
<bulat.ziganshin at gmail.com> wrote:
> Hello Haskell-cafe,
>
> can  you please point me to any OSS implementation of IO Channels with
> priorities  -  i.e. data pushed to the Chan using high priority should
> be read prior to the data pushed with lower priority:
>
> pushChan ch 1 'x'
> pushChan ch 2 'y'
> readChan ch >>= print -- prints 'y'
>
> i've  found only STM implementations - i don't know STM enough, may be
> i just need to convert STM to IO operations?
>
> i  don't  expect  strong  guarantees, my algorithm will remain correct
> anyway. and i don't have lot of objects, it's just a few dozens
>
>
>
> --
> Best regards,
>  Bulat                          mailto:Bulat.Ziganshin at gmail.com
>
> _______________________________________________
> Haskell-Cafe mailing list
> Haskell-Cafe at haskell.org
> http://www.haskell.org/mailman/listinfo/haskell-cafe


More information about the Haskell-Cafe mailing list