Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/launcher/batcher.rs
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ where

/// Merges UI context data into the rendering buffer.
///
/// This asynchronous function accepts two buffers:
/// This synchronous function accepts two buffers:
/// - `buf`: A mutable reference to a `Buffer<(UIContext, usize)>` used for UI rendering.
/// - `from`: A `Buffer<usize>` produced by `prepare` containing corresponding indices.
///
Expand All @@ -296,7 +296,7 @@ where
/// Both the preparation and merge operations are relatively time-consuming. To minimize rendering delays,
/// it is recommended that the preparation and rendering processes are executed concurrently (for example, in separate
/// threads or processes), while the merge operation should be performed in a synchronized manner.
pub async fn merge(
pub fn merge(
&mut self,
buf: &mut Buffer<(UIContext, usize)>,
mut from: Buffer<usize>,
Expand Down
2 changes: 1 addition & 1 deletion tests/dummyui.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ where

while more {
let from = batcher.prepare().await;
more = batcher.merge(&mut buf, from).await?;
more = batcher.merge(&mut buf, from)?;
}

let mut pos = Position::default();
Expand Down