Skip to main content

next_surface_id

Function next_surface_id 

Source
pub fn next_surface_id(messages: &[HistoryMessage], base: &str) -> String
Expand description

A surface id that will not collide with anything already in history.

createSurface requires a globally unique id for the renderer’s lifetime, so creating a second surface in the same conversation needs a fresh one.