Skip to content

Suggestions for handling asynchronous data #373

Answered by axunonb
karljj1 asked this question in Q&A
Discussion options

You must be logged in to vote

Currently I'm on vacation and thus a bit limited by available tools. So sorry for the delay.

You're looking for a smart solution for scenarios,

  • where an ISource cannot return the requested data, because it's not available yet, and
  • where the formatting step must therefore be skipped, as it could cause exceptions without the expected data

The implementation in the PR would be a solution indeed.
I have a small concern with using the exception message as the text to output. A separate property would be more open for any extensions. The class could be internal?
What I suggest here is to give the exception a name containing the cause, instead of the action to be taken, e.g. instead of AbortFo…

Replies: 3 comments 10 replies

Comment options

karljj1
Feb 16, 2024
Maintainer Author

You must be logged in to vote
3 replies
@axunonb
Comment options

Answer selected by karljj1
@karljj1
Comment options

karljj1 Feb 19, 2024
Maintainer Author

@axunonb
Comment options

Comment options

You must be logged in to vote
3 replies
@karljj1
Comment options

karljj1 May 24, 2024
Maintainer Author

@axunonb
Comment options

@axunonb
Comment options

Comment options

You must be logged in to vote
4 replies
@karljj1
Comment options

karljj1 Jun 28, 2024
Maintainer Author

@axunonb
Comment options

@mikasoukhov
Comment options

@axunonb
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants