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

WIP: Improve Thread pool invokation syntax #1691

Closed
wants to merge 21 commits into from
Closed

WIP: Improve Thread pool invokation syntax #1691

wants to merge 21 commits into from

Conversation

georgolden
Copy link
Member

@georgolden georgolden commented Nov 14, 2021

  • tests and linter show no problems (npm t)
  • tests are added/updated for bug fixes and new features
  • code is properly formatted (npm run fmt)
  • description of changes is added in CHANGELOG.md
  • update .d.ts typings

#1661

@georgolden
Copy link
Member Author

georgolden commented Nov 14, 2021

I made very simple one solution based in Promises. inThread method mixed to promise. [Update] this was not working solution

Alternatives can be:

  • create thenable compatible with Promise API
  • create a separate wrapper like Procedure for Interfaces, if more changes planned in future.
  • remove support of old Application.invoke syntax and refactor a bit.

Review and comments are very welcome. I tried to do everything tiny, accurate, small and old syntax friendly.

@tshemsedinov
Copy link
Member

@georgolden please provide call example

@georgolden
Copy link
Member Author

I found a bug in this implementation, will fix soon.

@georgolden
Copy link
Member Author

@tshemsedinov finally done. Please review. Api to test from Example added here https://github.com/georgolden/Example

This pull request was closed.
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