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

change worker api #82

Merged
merged 6 commits into from
Dec 22, 2023
Merged

change worker api #82

merged 6 commits into from
Dec 22, 2023

Conversation

dqnykamp
Copy link
Member

No description provided.

/**
* Launch the DoenetCore webworker with the given source string and DAST tree.
*/
launchCore: createLoggingAsyncThunk(
"core/launchCore",
getDast: createLoggingAsyncThunk(
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe refreshDast? Since this isn't actually a getter.

Copy link
Member Author

Choose a reason for hiding this comment

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

I feel like we'll have a different function with updates that will update/refresh the dast with just the new pieces. This returns the entire dast. What about calling it returnDast like it is on the worker side?

Copy link
Member Author

Choose a reason for hiding this comment

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

Or retrieveDast?

packages/doenetml-worker-rust/src/CoreWorker.ts Outdated Show resolved Hide resolved
packages/doenetml-worker-rust/src/CoreWorker.ts Outdated Show resolved Hide resolved
packages/doenetml-worker-rust/src/CoreWorker.ts Outdated Show resolved Hide resolved
packages/doenetml-worker-rust/src/CoreWorker.ts Outdated Show resolved Hide resolved
packages/doenetml-worker-rust/src/CoreWorker.ts Outdated Show resolved Hide resolved
packages/doenetml-worker-rust/src/lib.rs Outdated Show resolved Hide resolved
@dqnykamp dqnykamp marked this pull request as ready for review December 22, 2023 16:21
@dqnykamp dqnykamp merged commit 2f7c64e into Doenet:0.7 Dec 22, 2023
1 check passed
@dqnykamp dqnykamp deleted the worker-api branch December 22, 2023 20:00
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