Is this ok to derive from TPL Task to return more details from method?
问题 My original method looks like: string DoSomeWork(); Method DoSomeWork starts some work on other thread and returns execution ID (just random string). Later on I can query results by given execution ID. Main point is to make execution ID available before job will complete. Now I want to change signature to return Task, so user can wait if he want to. Task DoSomeWork(); At the same time I still need to return execution ID (for tracing purposes for example) and I see few options. First if out