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

complete test case for #84 #85

Merged
merged 3 commits into from
Nov 23, 2023
Merged

complete test case for #84 #85

merged 3 commits into from
Nov 23, 2023

Conversation

Kelerchian
Copy link
Contributor

Resolves #84

@@ -531,7 +537,7 @@ export const createMachineRunnerInternal = <
isDestroyed: internals.destruction.isDestroyed,
noAutoDestroy: () =>
MachineRunnerIterableIterator.make({
nextValueAwaiter,
nextValueAwaiter: nextValueAwaiter(defaultNextValueAwaiter.state()),
Copy link
Member

Choose a reason for hiding this comment

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

alternatively we could also use the .get() value here — this would mean that a .noAutoDestroy() AsyncIterable always immediately yields the current state if there is one, then waits for the next update

@Kelerchian Kelerchian force-pushed the ada/84/next-after-peek branch from 9f79293 to 4622853 Compare November 23, 2023 13:43
@Kelerchian Kelerchian merged commit 4d04e69 into master Nov 23, 2023
1 check passed
@Kelerchian Kelerchian deleted the ada/84/next-after-peek branch November 23, 2023 13:55
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.

noAutoDestroy should seamlessly continue
2 participants