Allow to dump internals of unfinished task using Uncapsulate
With the new Uncapsulate method in the beta, I tried dumping the internals of an unfinished task, because I'm trying to learn more about some internals of the tasks and the task scheduler.
However, it dumps as "awaiting...".
Could there be a way to force a dump now, even though the task hasn't finished? In my case, it was a task that will never finish because I created it expressly to know what the internals look like before it has completed.
So this:
new Task(() => { }).Uncapsulate().Dump();
will just show "awaiting...".
1
vote
Lasse Vågsæther Karlsen
shared this idea