-
-
Notifications
You must be signed in to change notification settings - Fork 14
feat: add support for instant and parallel event function handlers #586
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
Conversation
✅ Deploy Preview for commandkit canceled.
|
|
@copilot do not worry about tests, only make the necessary changes and make sure the build passes |
Co-authored-by: twlite <46562212+twlite@users.noreply.github.com>
Done! I've removed the test file and focused only on the implementation. The build passes successfully. Changes include:
Commit: The changes are in the commit above. |
|
@copilot please run |
Co-authored-by: twlite <46562212+twlite@users.noreply.github.com>
Parallel Event Handler Support
Adding support for instant and parallel event function handlers to CommandKit.
Event handlers can now export
parallel = trueto execute concurrently usingPromise.all(), while handlers without this flag continue to execute sequentially as before.Changes Made
parallelboolean field to track parallel execution modeloadEvents()to read theparallelexport from event handler modulesPromise.all()Usage
Event handlers can now opt-in to parallel execution:
Testing
Fixes #568
Original prompt
Fixes #568
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.