Skip to content

Conversation

@Clement-mim
Copy link
Contributor

Fix issue #54

Copy link
Owner

@ccoreilly ccoreilly left a comment

Choose a reason for hiding this comment

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

Please change sendResults to retrieveFinalResult where applicable

lib/src/model.ts Outdated
);
}

public sendResults(): void {
Copy link
Owner

Choose a reason for hiding this comment

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

I would prefer to call the public method retrieveFinalResult. Singular because only one result will be sent after calling the method. retrieve because, although you're telling the worker to send the final result, from the client perspective you want to get the result (but as it is an event triggering action I think get would be confusing).

Other than naming the rest looks awesome, thanks for contributing @Clement-mim !

@Clement-mim
Copy link
Contributor Author

Clement-mim commented Nov 7, 2022

It should be better now.
No problem, have a nice day!

@ccoreilly
Copy link
Owner

Thank you for your contribution!

@ccoreilly ccoreilly merged commit cc2565d into ccoreilly:master Nov 7, 2022
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