Ticket #7218 (closed feature request: fixed)

Opened 9 months ago

Last modified 9 months ago

No type level distinction between BroadcastTChan and TChan

Reported by: timthelion Owned by: simonmar
Priority: normal Milestone:
Component: libraries (other) Version: 7.4.2
Keywords: STM TChan Cc:
Operating System: Unknown/Multiple Architecture: Unknown/Multiple
Type of failure: None/Unknown Difficulty: Unknown
Test Case: Blocked By:
Blocking: Related Tickets:

Description

There is no type level distinction between BroadcastTChan(added in STM 2.4) and TChans. Because of this, readTChan throws a non informative runtime error "blocked indefinitely" when passed a broadcast chan. Can we get this fixed ASAP before it gets cemented into the type system?

Even just a more informative error message would be a huge improvement!

Change History

Changed 9 months ago by simonmar

  • owner set to simonmar
  • difficulty set to Unknown

Fair point. I'll see what I can do.

Changed 9 months ago by simonmar

  • status changed from new to closed
  • resolution set to fixed
commit 4965c0139de186c8322cb48b52550acb4b8d9afa
Author: Simon Marlow <marlowsd@gmail.com>
Date:   Thu Sep 6 09:46:20 2012 +0100

    Throw an exception when reading from a broadcast channel (#7218)
Note: See TracTickets for help on using tickets.