#7218 closed feature request (fixed)

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 (2)

comment:1 Changed 20 months ago by simonmar

  • Difficulty set to Unknown
  • Owner set to simonmar

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

comment:2 Changed 20 months ago by simonmar

  • Resolution set to fixed
  • Status changed from new to closed
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.