Skip to content

[TEST] iterate morsels API#21427

Draft
adriangb wants to merge 7 commits intoapache:mainfrom
adriangb:adrian/morsel-type-state-prototype
Draft

[TEST] iterate morsels API#21427
adriangb wants to merge 7 commits intoapache:mainfrom
adriangb:adrian/morsel-type-state-prototype

Conversation

@adriangb
Copy link
Copy Markdown
Contributor

@adriangb adriangb commented Apr 7, 2026

The idea here is to encode the API contract into the type system

@github-actions github-actions bot added the datasource Changes to the datasource crate label Apr 7, 2026
future: BoxFuture<'static, Result<Box<dyn MorselPlanner>>>,
}

impl PendingMorselPlanner {
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.

i like this idea

Comment on lines +116 to +117
pub struct PendingMorselPlanner {
future: BoxFuture<'static, Result<Box<dyn MorselPlanner>>>,
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.

I think this is the key change -- this returns the MorselPlanner rather than relying on the caller to hold on to it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

datasource Changes to the datasource crate

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants