Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

📝 Document the new action interface in v4 #951

Merged
merged 1 commit into from
Jan 3, 2025
Merged

📝 Document the new action interface in v4 #951

merged 1 commit into from
Jan 3, 2025

Conversation

cowboyd
Copy link
Member

@cowboyd cowboyd commented Jan 2, 2025

Motivation

The action() interface has been greatly simplifield for v4 bringing it almost completely in line with the new Promise() constructor.

Approach

This adds docs for both the function and also the rosetta stone entry.

The `action()` interface has been greatly simplifield for v4 bringing
it almost completely in line with the `new Promise()` constructor.

This adds docs for both the function and also the rosetta stone entry.
@cowboyd cowboyd requested review from taras, neurosnap and jbolda January 2, 2025 21:54
* @return a "finally" function that is _always_ run whether the
* action is resolved, rejected, or discarded.
*/
interface Executor<T> {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was renamed to Executor because that's the terminology used by the Promise constructor

Copy link
Member

@taras taras left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 very nice!

@cowboyd cowboyd merged commit 1d7a6c6 into v4 Jan 3, 2025
3 checks passed
@cowboyd cowboyd deleted the v4-action-docs branch January 3, 2025 05:34
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