Skip to content

add nextEvents#34

Open
mingfang wants to merge 1 commit into
restatedev:mainfrom
mingfang:main
Open

add nextEvents#34
mingfang wants to merge 1 commit into
restatedev:mainfrom
mingfang:main

Conversation

@mingfang

@mingfang mingfang commented Oct 5, 2025

Copy link
Copy Markdown

fix #33

@igalshilman

Copy link
Copy Markdown
Contributor

Hello @mingfang, the change looks good to me, if you can, please run pnpm run format, then let's wait for the tests to run.

@igalshilman igalshilman self-requested a review October 6, 2025 10:30
export type RunningMachine<SnapshotType> = {
send: (event: AnyEventObject) => Promise<SnapshotType>;
snapshot(): Promise<SnapshotType>;
nextEvents(): Promise<SnapshotType>;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

should the return type be Promise<string[]> ?

LatestStateMachine | PreviousStateMachine
>(ctx, api, systemName, version, logic);

const snapshot = root.getSnapshot();

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

should this be root.getPersistedSnapshot() ?

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.

Feature: Add ability to get next events

2 participants