-
-
Notifications
You must be signed in to change notification settings - Fork 9
Open
Description
Currently a faulted instance doesn't carry any context (other than the exception). It can be somewhat limiting. The only thing you can really do with one is log the exception itself, but multiple Try instances you don't know the origin of it.
I'm not sure what's the appropriate solution here, but do you see this as an issue that needs a solution?
I can imagine adding a Try<TInput, TResult> (which can also avoid capturing):
var block =
new TransformBlock<string, Try<string, string>>(
uri => Try.Create(uri, innerUri => client.GetStringAsync(innerUri)));
I can make that a PR if you're interested.
WDYT?
Metadata
Metadata
Assignees
Labels
No labels