Skip to content

Conversation

@Minimaximize
Copy link
Contributor

Added an Id to allow the components of an AsyncEvent (started, resolved, rejected) to be correlated in event reductions.

This is important in cases where an asyncEvent is passed a new promise before the previous promise has resolved or rejected; as the subsequent resolution or rejection of the previous promise may cause undesirable state changes

Added an Id to allow the components of an AsyncEvent (started, resolved, rejected)
to be correlated in event reductions.

This is important in cases where an asyncEvent is passed a new promise before
the previous promise has resolved or rejected; as the subsequent
resolution or rejection of the previous promise may cause undesirable state changes
@soxtoby
Copy link
Owner

soxtoby commented Jul 4, 2023

What does this let you do that you couldn't already do with the context?

@Minimaximize
Copy link
Contributor Author

Not a lot, it's essentially just a basic context that isn't required to be passed in with the promise.
It was mostly to fix a bug in LoadState where the previous event rejecting caused it to appear loaded before the latest event had completed

@soxtoby
Copy link
Owner

soxtoby commented Jul 4, 2023

Seems like something to fix in user space then.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants