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] refactor js operator runtime #4949

Draft
wants to merge 5 commits into
base: develop
Choose a base branch
from
Draft

Conversation

ritch
Copy link
Contributor

@ritch ritch commented Oct 19, 2024

Refactors the JS operator runtime into a separate submodule that matches the existing interfaces. All the code is the same, but now factored into tiny testable bite sized files/functions.

This also includes a new unit (as in the runtime sub modules is the unit) test suite.

Copy link

Choose a reason for hiding this comment

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

There's a typo in the name of this file:

-useExectuionContext.test.tsx
+useExecutionContext.test.tsx

* @returns {UseInvocationRequestQueueReturn} - An object containing requests, success, and error handling functions.
*/
export default function useInvocationRequestQueue(): UseInvocationRequestQueueReturn {
const ref = useRef<InvocationRequestQueue>();
Copy link
Contributor

Choose a reason for hiding this comment

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

What is the lifecycle of the queue?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I've added a readme to answer this question!

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.

3 participants