0

Is there any command that will list all background threads in a GHCi session? And next question is, how to kill one (or all) of them?

Related:

Saurabh Nanda
  • 6,373
  • 5
  • 31
  • 60
  • Why do you doubt the answer on the linked question? ("The library simply doesn't give you anything to get the `ThreadId`s of all (still running) threads or any other facility to work on any threads which doesn't belong to you.") – Daniel Wagner Oct 13 '17 at 04:18
  • Not expecting the library to give me anything. Expecting some "hidden feature" in the RTS or GHCi. – Saurabh Nanda Oct 13 '17 at 05:26
  • The library is the collection of user-visible RTS features. – Daniel Wagner Oct 13 '17 at 05:28

1 Answers1

1

No. If you want the ThreadIds of running threads, it is your responsibility to keep track of them when you forkIO.

Daniel Wagner
  • 145,880
  • 9
  • 220
  • 380