cats-effect icon indicating copy to clipboard operation
cats-effect copied to clipboard

Issue 4490: Added thread name to IO.debug

Open alstepan opened this issue 1 month ago • 1 comments

An implementation for https://github.com/typelevel/cats-effect/issues/4409

alstepan avatar Nov 19 '25 20:11 alstepan

Thanks for the PR. I'm wondering, what is the intention here? To print which thread exactly?

durban avatar Nov 23 '25 13:11 durban

@durban Not sure I understand your question, Thread.currentThread returns the currently executing thread, no?

asarkar avatar Dec 15 '25 03:12 asarkar

Sure, but which thread, executing what code, when? The thread writing to stdout? The thread executing this: IO[A]? The thread executing the closure in the guaranteeCase? (Again, I'm asking for the intention here.)

durban avatar Dec 15 '25 22:12 durban

The thread in guaranteeCase as shown in the ticket.

asarkar avatar Dec 16 '25 01:12 asarkar

The intent is to add thread name to prefix wherever it appears.

asarkar avatar Dec 16 '25 01:12 asarkar