Issue 4490: Added thread name to IO.debug
An implementation for https://github.com/typelevel/cats-effect/issues/4409
Thanks for the PR. I'm wondering, what is the intention here? To print which thread exactly?
@durban Not sure I understand your question, Thread.currentThread returns the currently executing thread, no?
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.)
The thread in guaranteeCase as shown in the ticket.
The intent is to add thread name to prefix wherever it appears.